Class: FigNewton::CLI
- Inherits:
-
Thor
- Object
- Thor
- FigNewton::CLI
- Defined in:
- lib/fig-newton/cli.rb
Instance Method Summary collapse
- #clean(stack_name, app = nil) ⇒ Object
- #clone(stack_name) ⇒ Object
- #down(stack_name) ⇒ Object
- #init(stack_name) ⇒ Object
- #pull(stack_name, app = nil) ⇒ Object
- #up(stack_name) ⇒ Object
Instance Method Details
#clean(stack_name, app = nil) ⇒ Object
70 71 72 73 74 |
# File 'lib/fig-newton/cli.rb', line 70 def clean(stack_name, app = nil) require "fig-newton/commands/clean" command = FigNewton::Commands::Clean.new(stack_name, app, [:conf]) command.run([:parent_directory]) end |
#clone(stack_name) ⇒ Object
26 27 28 29 30 |
# File 'lib/fig-newton/cli.rb', line 26 def clone(stack_name) require "fig-newton/commands/clone" command = FigNewton::Commands::Clone.new(stack_name, [:conf]) command.run([:parent_directory]) end |
#down(stack_name) ⇒ Object
48 49 50 51 52 |
# File 'lib/fig-newton/cli.rb', line 48 def down(stack_name) require "fig-newton/commands/down" command = FigNewton::Commands::Down.new(stack_name, [:conf]) command.run([:parent_directory]) end |
#init(stack_name) ⇒ Object
15 16 17 18 19 |
# File 'lib/fig-newton/cli.rb', line 15 def init(stack_name) require "fig-newton/commands/init" command = FigNewton::Commands::Init.new(stack_name, [:conf]) command.run([:force]) end |