Sha256: a25e3be6800aa4da07ccd9574b1552868d460ff056228091b2a6212d420e2cbb
Contents?: true
Size: 428 Bytes
Versions: 16
Compression:
Stored size: 428 Bytes
Contents
namespace :phocoder_rails do desc "Update pending EncodableJobs" task :update_pending_jobs => :environment do e = EncodableJob.first e.encodable # try to load phocoder config e.encodable.class.read_phocodable_configuration #puts "api key = #{Phocoder.api_key}" #puts "Rails.env = #{Rails.env}" puts "Updating #{EncodableJob.pending.count} EncodableJobs" EncodableJob.update_pending_jobs end end
Version data entries
16 entries across 16 versions & 1 rubygems