Class: Dragonfly::Job::Fetch

Inherits:
Step show all
Defined in:
lib/dragonfly/job.rb

Instance Attribute Summary

Attributes inherited from Step

#args, #job

Instance Method Summary (collapse)

Methods inherited from Step

abbreviation, basename, #init, #initialize, #inspect, step_name, #to_a

Constructor Details

This class inherits a constructor from Dragonfly::Job::Step

Instance Method Details

- (Object) apply



68
69
70
71
# File 'lib/dragonfly/job.rb', line 68

def apply
  content, meta = job.app.datastore.retrieve(uid)
  job.update(content, meta)
end

- (Object) uid



65
66
67
# File 'lib/dragonfly/job.rb', line 65

def uid
  args.first
end