Class: Tzispa::Command::Cli::Generate
- Inherits:
-
Thor
- Object
- Thor
- Tzispa::Command::Cli::Generate
- Defined in:
- lib/tzispa/command/cli/generate.rb
Instance Method Summary collapse
Instance Method Details
#api(name) ⇒ Object
40 41 42 43 44 |
# File 'lib/tzispa/command/cli/generate.rb', line 40 def api(name) hnd = Tzispa::Command::Api.new(name, [:app]) hnd.generate puts "Api handler '#{name}' has been created in #{[:app]}" end |
#app(name) ⇒ Object
21 22 23 24 25 |
# File 'lib/tzispa/command/cli/generate.rb', line 21 def app(name) tzapp = Tzispa::Command::App.new(name) tzapp.generate([:host], [:mount]) puts "App '#{name}' has been created" end |