Class: Simba::Command

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/simba/command.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



9
10
11
# File 'lib/simba/command.rb', line 9

def self.source_root
  File.dirname(__FILE__)
end

Instance Method Details

#new(name) ⇒ Object



19
20
21
22
# File 'lib/simba/command.rb', line 19

def new(name)
  @secret = SecureRandom.hex 32
  directory("templates", name)
end

#versionObject



14
15
16
# File 'lib/simba/command.rb', line 14

def version
  puts Simba::VERSION
end