Class: Dragonfly::Job::Generate
Instance Attribute Summary
Attributes inherited from Step
#args, #job
Instance Method Summary
collapse
Methods inherited from Step
abbreviation, basename, #init, #initialize, #inspect, step_name
Instance Method Details
108
109
110
111
|
# File 'lib/dragonfly/job.rb', line 108
def apply
content, meta = job.app.generator.generate(name, *arguments)
job.update(content, meta)
end
|
#arguments ⇒ Object
105
106
107
|
# File 'lib/dragonfly/job.rb', line 105
def arguments
args[1..-1]
end
|
102
103
104
|
# File 'lib/dragonfly/job.rb', line 102
def name
args.first.to_sym
end
|