class Dragonfly::Job::Fetch

Public Instance Methods

apply() click to toggle source
# File lib/dragonfly/job/fetch.rb, line 12
def apply
  content, meta = app.datastore.read(uid)
  raise NotFound, "uid #{uid} not found" if content.nil?
  job.content.update(content, meta)
end
uid() click to toggle source
# File lib/dragonfly/job/fetch.rb, line 8
def uid
  args.first
end