Sha256: befa91fcb356dfdcaa4dca4bb4e5ee6e85036510c413300badcf8f55e89e35e5

Contents?: true

Size: 566 Bytes

Versions: 14

Compression:

Stored size: 566 Bytes

Contents

# desc "Explaining what the task does"
# task :cloudhdr_rails do
#   # Task goes here
# end

namespace :cloudhdr_rails do
  desc "Update pending CloudhdrJobs"
  task :update_pending_jobs => :environment do
    #e = CloudhdrJob.first
    #e.encodable # try to load cloudhdr config
    #e.encodable.class.read_cloudhdr_configuration
    ActsAsCloudhdr.read_cloudhdr_configuration
    #puts "api key = #{cloudhdr.api_key}"
    #puts "Rails.env = #{Rails.env}"
    puts "Updating #{CloudhdrJob.pending.count} CloudhdrJobs"
    CloudhdrJob.update_pending_jobs
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cloudhdr_rails-0.0.14 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.13 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.12 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.11 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.10 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.9 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.8 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.7 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.6 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.5 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.4 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.3 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.2 lib/tasks/cloudhdr_rails_tasks.rake
cloudhdr_rails-0.0.1 lib/tasks/cloudhdr_rails_tasks.rake