Class: Jet::CLI
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object (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_root ⇒ Object
14 15 16 |
# File 'lib/jet/cli.rb', line 14 def self.source_root ::File.(::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 |
#server ⇒ Object
10 11 12 |
# File 'lib/jet/cli.rb', line 10 def server Foreman::CLI.new.start end |