mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 04:22:28 +01:00
27 lines
456 B
Ruby
27 lines
456 B
Ruby
# frozen_string_literal: true
|
|
|
|
namespace :rates do
|
|
desc 'Load all'
|
|
task all: :environment do
|
|
require 'bank'
|
|
Bank.fetch_all!
|
|
end
|
|
|
|
desc 'Load last 90 days'
|
|
task ninety_days: :environment do
|
|
require 'bank'
|
|
Bank.fetch_ninety_days!
|
|
end
|
|
|
|
desc 'Load current'
|
|
task current: :environment do
|
|
require 'bank'
|
|
Bank.fetch_current!
|
|
end
|
|
|
|
task :seed_with_saved_data do
|
|
require 'bank'
|
|
Bank.seed_with_saved_data!
|
|
end
|
|
end
|