class FigNewton::CLI

Public Instance Methods

clean(stack_name, app = nil) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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