Class: Mamiya::Agent::Tasks::Fetch
- Inherits:
-
Notifyable
- Object
- Abstract
- Notifyable
- Mamiya::Agent::Tasks::Fetch
- Defined in:
- lib/mamiya/agent/tasks/fetch.rb
Instance Attribute Summary
Attributes inherited from Abstract
#agent, #error, #logger, #task, #task_queue
Instance Method Summary collapse
Methods inherited from Notifyable
Methods inherited from Abstract
#after, #before, #errored, #execute, identifier, #initialize, #raise_error?, #task_id
Constructor Details
This class inherits a constructor from Mamiya::Agent::Tasks::Abstract
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/mamiya/agent/tasks/fetch.rb', line 11 def run prepare_destination take_interval logger.info "Fetching #{application}/#{package}" step.run! order_cleaning rescue Mamiya::Storages::Abstract::AlreadyFetched logger.info "It has already fetched; skipping." end |