Class: Tomago::CLI
Instance Method Summary collapse
- #debug(name) ⇒ Object
- #hello(name = "you") ⇒ Object
- #launch(name) ⇒ Object
- #new(name) ⇒ Object
- #version ⇒ Object
Methods inherited from Command
Instance Method Details
#debug(name) ⇒ Object
30 31 32 |
# File 'lib/tomago/cli.rb', line 30 def debug(name) ProjectLauncher.new(name, debug: true) end |
#hello(name = "you") ⇒ Object
9 10 11 12 |
# File 'lib/tomago/cli.rb', line 9 def hello(name="you") puts "from: #{[:from]}" if [:from] puts "Hello #{name}" end |
#launch(name) ⇒ Object
25 26 27 |
# File 'lib/tomago/cli.rb', line 25 def launch(name) ProjectLauncher.new(name) end |
#new(name) ⇒ Object
20 21 22 |
# File 'lib/tomago/cli.rb', line 20 def new(name) ProjectGenerator.new(name) end |