mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-10-29 23:32:35 +01:00
e28755f76c
There's probably a cleaner way of doing this, but it should do for now. Fixes #4
13 lines
197 B
Ruby
Executable File
13 lines
197 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
require 'rufus-scheduler'
|
|
|
|
scheduler = Rufus::Scheduler.new
|
|
|
|
scheduler.cron '*/15 15,16,17 * * 1-5' do
|
|
`rake rates:current`
|
|
end
|
|
|
|
scheduler.join
|