frankfurter/lib/tasks/rates.rake

22 lines
367 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-06-14 22:16:21 +02:00
2014-03-14 13:12:21 +01:00
namespace :rates do
2018-06-06 17:30:18 +02:00
desc 'Load all'
task all: :environment do
require 'bank'
2018-06-06 17:30:18 +02:00
Bank.fetch_all!
2014-03-14 13:12:21 +01:00
end
2018-06-06 17:30:18 +02:00
desc 'Load last 90 days'
task ninety_days: :environment do
require 'bank'
2018-06-06 17:30:18 +02:00
Bank.fetch_ninety_days!
end
desc 'Load current'
task current: :environment do
require 'bank'
Bank.fetch_current!
2014-03-14 13:12:21 +01:00
end
end