Class: Dragonfly::Job::Process
Instance Attribute Summary
Attributes inherited from Step
#args
Instance Method Summary
collapse
Methods inherited from Step
abbreviation, basename, #initialize, #inspect, step_name, #update_temp_object
Instance Method Details
#apply(job) ⇒ Object
72
73
74
75
76
|
# File 'lib/dragonfly/job.rb', line 72
def apply(job)
raise NothingToProcess, "Can't process because temp object has not been initialized. Need to fetch first?" unless job.temp_object
content, = job.app.processor.process(job.temp_object, name, *arguments)
update_temp_object(job, content, )
end
|
#arguments ⇒ Object
69
70
71
|
# File 'lib/dragonfly/job.rb', line 69
def arguments
args[1..-1]
end
|
66
67
68
|
# File 'lib/dragonfly/job.rb', line 66
def name
args.first
end
|