lib/docket/repeater.rb in docket-0.1.2 vs lib/docket/repeater.rb in docket-0.2.0
- old
+ new
@@ -12,10 +12,10 @@
@perform_action = args[:perform_action]
@perform_on = args[:perform_on]
@scheduler = args[:scheduler] || Rufus::Scheduler.new
@scheduler_action = args[:scheduler_action]
@scheduler_set_callback = args[:scheduler_set_callback] || lambda {|scheduler|}
- @storage = args[:storage] || Docket::Storage.new('/tmp/docket.rb')
+ @storage = args[:storage] || Docket.configuration.storage || Docket::Storage::Daybreak.new('/tmp/docket.rb')
@repeat = args[:repeat]
end
def repeated_items
frequencies.collect { |frequency| items_for frequency }.compact.flatten