Class: Dragonfly::Job::Generate
- 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
Instance Method Details
112
113
114
115
|
# File 'lib/dragonfly/job.rb', line 112
def apply
content, meta = job.app.generator.generate(name, *arguments)
job.update(content, meta)
end
|
- (Object) arguments
109
110
111
|
# File 'lib/dragonfly/job.rb', line 109
def arguments
args[1..-1]
end
|
106
107
108
|
# File 'lib/dragonfly/job.rb', line 106
def name
args.first.to_sym
end
|