Class: FigNewton::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/fig-newton/cli.rb

Instance Method Summary collapse

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, options[:conf])
  command.run(options[: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, options[:conf])
  command.run(options[: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, options[:conf])
  command.run(options[: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, options[:conf])
  command.run(options[:force])
end

#pull(stack_name, app = nil) ⇒ Object



59
60
61
62
63
# File 'lib/fig-newton/cli.rb', line 59

def pull(stack_name, app = nil)
  require "fig-newton/commands/pull"
  command = FigNewton::Commands::Pull.new(stack_name, app, options[:conf])
  command.run(options[:parent_directory])
end

#up(stack_name) ⇒ Object



37
38
39
40
41
# File 'lib/fig-newton/cli.rb', line 37

def up(stack_name)
  require "fig-newton/commands/up"
  command = FigNewton::Commands::Up.new(stack_name, options[:conf])
  command.run(options[:parent_directory])
end