class FigNewton::Commands::Down
Attributes
config[RW]
stack_name[RW]
Public Class Methods
new(stack_name, config_dir)
click to toggle source
# File lib/fig-newton/commands/down.rb, line 6 def initialize(stack_name, config_dir) @stack_name = stack_name @config = FigNewton::Config.from_file(config_dir, @stack_name) end
Public Instance Methods
run(parent_directory)
click to toggle source
# File lib/fig-newton/commands/down.rb, line 11 def run(parent_directory) config.apps.each { |_, app| app.down(parent_directory) } end