Class: Mamiya::Steps::Fetch
- Defined in:
- lib/mamiya/steps/fetch.rb
Instance Attribute Summary
Attributes inherited from Abstract
#config, #logger, #options, #script
Instance Method Summary collapse
Methods inherited from Abstract
Constructor Details
This class inherits a constructor from Mamiya::Steps::Abstract
Instance Method Details
#run! ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/mamiya/steps/fetch.rb', line 7 def run! application = [:application] || (script && script.application) raise 'no application name given' unless application storage = config.storage_class.new( config[:storage].merge( application: application ) ) logger.info("Fetching package #{options[:package]} from storage(app=#{storage.application}) to #{options[:destination]}...") storage.fetch([:package], [:destination]) end |