Class: Jet::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/jet/cli.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



19
20
21
# File 'lib/jet/cli.rb', line 19

def name
  @name
end

Class Method Details

.source_rootObject



14
15
16
# File 'lib/jet/cli.rb', line 14

def self.source_root
  ::File.expand_path(::File.join(::File.dirname(__FILE__), 'templates'))
end

Instance Method Details

#new(name) ⇒ Object



20
21
22
23
24
25
# File 'lib/jet/cli.rb', line 20

def new(name)
  @name = name
  target = ::File.join(Dir.pwd, name)

  directory 'application', target
end

#serverObject



10
11
12
# File 'lib/jet/cli.rb', line 10

def server
  Foreman::CLI.new.start
end