Class: Dragonfly::Job::Process

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

Raises:



81
82
83
84
85
# File 'lib/dragonfly/job.rb', line 81

def apply
  raise NothingToProcess, "Can't process because temp object has not been initialized. Need to fetch first?" unless job.temp_object
  content, meta = job.app.processor.process(job.temp_object, name, *arguments)
  job.update(content, meta)
end

- (Object) arguments



78
79
80
# File 'lib/dragonfly/job.rb', line 78

def arguments
  args[1..-1]
end

- (Object) name



75
76
77
# File 'lib/dragonfly/job.rb', line 75

def name
  args.first.to_sym
end