mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
13 lines
241 B
Ruby
Executable File
13 lines
241 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
system 'rake db:setup'
|
|
|
|
require 'rufus-scheduler'
|
|
|
|
scheduler = Rufus::Scheduler.new
|
|
scheduler.cron '*/15 15,16,17 * * 1-5', timeout: '1m' do
|
|
system 'rake rates:current'
|
|
end
|
|
scheduler.join
|