class Dragonfly::Job::Generate

Public Instance Methods

apply() click to toggle source
# File lib/dragonfly/job/generate.rb, line 22
def apply
  generator.call(job.content, *arguments)
end
arguments() click to toggle source
# File lib/dragonfly/job/generate.rb, line 18
def arguments
  args[1..-1]
end
generator() click to toggle source
# File lib/dragonfly/job/generate.rb, line 14
def generator
  @generator ||= app.get_generator(name)
end
init() click to toggle source
# File lib/dragonfly/job/generate.rb, line 6
def init
  generator.update_url(job.url_attributes, *arguments) if generator.respond_to?(:update_url)
end
name() click to toggle source
# File lib/dragonfly/job/generate.rb, line 10
def name
  args.first
end