Class: FigNewton::Commands::Pull
- Inherits:
-
Object
- Object
- FigNewton::Commands::Pull
- Defined in:
- lib/fig-newton/commands/pull.rb
Instance Method Summary collapse
-
#initialize(stack_name, app, config_dir) ⇒ Pull
constructor
A new instance of Pull.
- #run(parent_directory) ⇒ Object
Constructor Details
Instance Method Details
#run(parent_directory) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/fig-newton/commands/pull.rb', line 12 def run(parent_directory) if @app config.apps[@app].pull(parent_directory) else config.apps.each { |_, app| app.pull(parent_directory) } end end |