Module: SerialScheduler

Includes:
NewRelic::Agent::Instrumentation::ControllerInstrumentation
Defined in:
lib/serial_scheduler.rb

Defined Under Namespace

Classes: Converter, Dsl, Logger, Runner, TimeTable

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.define(environment_target, &block) ⇒ Object



5
6
7
# File 'lib/serial_scheduler.rb', line 5

def define(environment_target, &block)
  SerialScheduler::Dsl.new.instance_eval(&block) if !defined?(Rails) || environment_target == Rails.env.to_sym
end

.dry_run(time = Time.now) ⇒ Object



13
14
15
# File 'lib/serial_scheduler.rb', line 13

def dry_run(time = Time.now)
  SerialScheduler::Runner.dry_run(time)
end

.run(time = Time.now) ⇒ Object



9
10
11
# File 'lib/serial_scheduler.rb', line 9

def run(time = Time.now)
  SerialScheduler::Runner.run(time)
end

Instance Method Details

#loggerObject



23
24
25
# File 'lib/serial_scheduler.rb', line 23

def logger
  Rails.logger
end