Parent

Resque::ChainedJobWithStatus

Public Class Methods

enqueue(klass, options = {}) click to toggle source
# File lib/resque_ui/overrides/resque_status/chained_job_with_status.rb, line 15
def self.enqueue(klass, options = {})
  #tie this job to the status of the calling job
  opts = HashWithIndifferentAccess.new(options)
  raise ArgumentError, "You must supply a :uuid attribute in your call to create." unless opts['uuid']
  uuid = opts['uuid']
  Resque.enqueue(klass, uuid, options)
  uuid
end

Public Instance Methods

completed(*messages) click to toggle source
# File lib/resque_ui/overrides/resque_status/chained_job_with_status.rb, line 7
    def completed(*messages)
      super(*messages)
      # "You must override this method to provide your own logic of when to actually call complete."
#      if counter(:processed) >= options['total']
#        super
#      end
    end
name() click to toggle source
# File lib/resque_ui/overrides/resque_status/chained_job_with_status.rb, line 3
def name
  status.name rescue nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.