Sha256: 503827db52ffd810a89ad1df519c76c993340b3d954417fa7de338b8a465bcbd

Contents?: true

Size: 431 Bytes

Versions: 18

Compression:

Stored size: 431 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

18 entries across 18 versions & 1 rubygems

Version Path
roqua-support-0.4.6 lib/roqua-support/railtie.rb
roqua-support-0.4.5 lib/roqua-support/railtie.rb
roqua-support-0.4.4 lib/roqua-support/railtie.rb
roqua-support-0.4.3 lib/roqua-support/railtie.rb
roqua-support-0.4.2 lib/roqua-support/railtie.rb
roqua-support-0.4.1 lib/roqua-support/railtie.rb
roqua-support-0.4.0 lib/roqua-support/railtie.rb
roqua-support-0.3.5 lib/roqua-support/railtie.rb
roqua-support-0.3.4 lib/roqua-support/railtie.rb
roqua-support-0.3.3 lib/roqua-support/railtie.rb
roqua-support-0.3.2 lib/roqua-support/railtie.rb
roqua-support-0.3.1 lib/roqua-support/railtie.rb
roqua-support-0.3.0 lib/roqua-support/railtie.rb
roqua-support-0.1.34 lib/roqua-support/railtie.rb
roqua-support-0.1.33 lib/roqua-support/railtie.rb
roqua-support-0.1.32 lib/roqua-support/railtie.rb
roqua-support-0.1.31 lib/roqua-support/railtie.rb
roqua-support-0.1.30 lib/roqua-support/railtie.rb