frankfurter/app/bin/schedule
2017-11-09 23:30:14 +00:00

16 lines
290 B
Ruby
Executable File

#!/usr/bin/env ruby
# frozen_string_literal: true
require_relative '../config/environment'
require 'rake'
require 'rufus-scheduler'
schedule = Rufus::Scheduler.new
schedule.cron '*/15 15,16,17 * * 1-5' do
load 'tasks/rates.rake'
Rake::Task['rates:update'].execute
end
schedule.join