frankfurter/lib/tasks/rates.rake
Hakan Ensari 6feaa0c372 Do housekeeping
- Bump ruby to 3.0.1
- Upgrade gems
- Add suggested rubocop rake plugin
- Fix rubocop warnings
- Add byebug and pry
2021-05-11 12:26:01 +01:00

28 lines
486 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
desc 'Seed with saved data'
task :seed_with_saved_data do
require 'bank'
Bank.seed_with_saved_data!
end
end