mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 12:32:30 +01:00
19 lines
254 B
Ruby
Executable File
19 lines
254 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
`rake db:setup`
|
|
|
|
require 'rufus-scheduler'
|
|
|
|
scheduler = Rufus::Scheduler.new
|
|
|
|
trap 'INT' do
|
|
scheduler.shutdown
|
|
end
|
|
|
|
scheduler.cron '*/15 15,16,17 * * 1-5' do
|
|
`rake rates:current`
|
|
end
|
|
|
|
scheduler.join
|