Class: Reschedule::Reschedulers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/reschedule/reschedulers/base.rb

Direct Known Subclasses

All, MemoryThreshold

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/reschedule/reschedulers/base.rb', line 8

def initialize(options={})
  @options = options || {}
  @options.reverse_merge!(self.class.defaults)
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/reschedule/reschedulers/base.rb', line 4

def options
  @options
end

Instance Method Details

#runObject



13
14
15
16
# File 'lib/reschedule/reschedulers/base.rb', line 13

def run
  Reschedule.logger.debug "Starting #{self.class.name}"
  Reschedule.logger.debug "Dry run mode is on" if Reschedule.configuration.dry_run
end