Sha256: 5d6beb407137fceb18f931f05add4cf37bb4c866948094c75db2202034fb53b4

Contents?: true

Size: 433 Bytes

Versions: 3

Compression:

Stored size: 433 Bytes

Contents

module Roqua
  # Include global rake tasks
  class Railtie < Rails::Railtie
    rake_tasks do
      namespace :roqua do
        desc 'Check if cron needs to run on this instance of the application'
        task :cron_ping do
          ActiveRecord::Base.establish_connection
          require_relative Rails.root.join('config', 'schedule.rb')
          Roqua::Scheduling::Scheduler.new.ping
        end
      end
    end
  end
end
  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
roqua-support-0.1.29 lib/roqua-support/railtie.rb
roqua-support-0.1.28 lib/roqua-support/railtie.rb
roqua-support-0.1.27 lib/roqua-support/railtie.rb