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
.run(time = Time.now) ⇒ Object
Instance Method Details
#logger ⇒ Object
23
24
25
|
# File 'lib/serial_scheduler.rb', line 23
def logger
Rails.logger
end
|