mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 20:42:31 +01:00
16 lines
290 B
Ruby
Executable File
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
|