Sha256: b36d264287b2f45c23b6e7e49864fc1032b1d96629f94e046d215836d074383c
Contents?: true
Size: 897 Bytes
Versions: 2
Compression:
Stored size: 897 Bytes
Contents
# Use this file to easily define all of your cron jobs. # # It's helpful, but not entirely necessary to understand cron before proceeding. # http://en.wikipedia.org/wiki/Cron # Example: # # set :output, "/path/to/my/cron_log.log" # # every 2.hours do # command "/usr/bin/some_great_command" # runner "MyModel.some_method" # rake "some:great:rake:task" # end # # every 4.days do # runner "AnotherModel.prune_old_records" # end # For loading the cron jobs run 'whenever -i' # Learn more: http://github.com/javan/whenever require_relative '../lib/dollar_to_euro/ecb_url' require_relative '../lib/dollar_to_euro/worker' job_type :custom_job, 'cd :path && bundle exec bin/dollar_to_euro --update' every 1.day, :at => '4:30 am' do url = "#{DollarToEuro::ECB_URL}&start=04-01-1999&end=#{Date.today.strftime("%d-%m-%Y")}&type=csv" custom_job "UpdateDatabase.perform_async('#{url}')" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dollar_to_euro-0.1.1 | config/schedule.rb |
dollar_to_euro-0.1.0 | config/schedule.rb |