Sha256: b4ccc27c2bf4bcad563407bf03168cde6a8162d9729aa86bd2d5296613bcce8b

Contents?: true

Size: 339 Bytes

Versions: 39

Compression:

Stored size: 339 Bytes

Contents

require ::File.expand_path('../environment',  __FILE__)

require 'clockwork'
include Clockwork

every(1.day, 'revisions.assign', :at => '02:00') do
  date = Date.today
  list = ::Gateway.all.map{|x| x.librarize}.select{|x| x.requires_revision?}

  list.each do |x|
    Revision.create!(:gateway_id => x.gateway.id, :date => date)
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
smartkiosk-server-0.13.1 config/schedule.rb
smartkiosk-server-0.13 config/schedule.rb
smartkiosk-server-0.12.1 config/schedule.rb
smartkiosk-server-0.12 config/schedule.rb
smartkiosk-server-0.11.11 config/schedule.rb
smartkiosk-server-0.11.10 config/schedule.rb
smartkiosk-server-0.11.9 config/schedule.rb
smartkiosk-server-0.11.8 config/schedule.rb
smartkiosk-server-0.11.7 config/schedule.rb
smartkiosk-server-0.11.6 config/schedule.rb
smartkiosk-server-0.11.5 config/schedule.rb
smartkiosk-server-0.11.4 config/schedule.rb
smartkiosk-server-0.11.3 config/schedule.rb
smartkiosk-server-0.11.2 config/schedule.rb
smartkiosk-server-0.11.1 config/schedule.rb
smartkiosk-server-0.11 config/schedule.rb
smartkiosk-server-0.10.19 config/schedule.rb
smartkiosk-server-0.10.18 config/schedule.rb
smartkiosk-server-0.10.17 config/schedule.rb
smartkiosk-server-0.10.16 config/schedule.rb