Sha256: cf3309b5c0196f10e8859c69129e248ee29d8eb04f0bdcb7713c95286c7676e6
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
namespace :copycopter do desc "Notify Copycopter of a new deploy." task :deploy => :environment do CopycopterClient.deploy puts "Successfully marked all blurbs as published." end desc "Export Copycopter blurbs to yaml." task :export => :environment do CopycopterClient.cache.sync if yml = CopycopterClient.export PATH = "config/locales/copycopter.yml" File.new("#{Rails.root}/#{PATH}", 'w').write(yml) puts "Successfully exported blurbs to #{PATH}." else puts "No blurbs have been cached." end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
copycopter_client-2.0.1 | lib/tasks/copycopter_client_tasks.rake |
copycopter_client-2.0.0 | lib/tasks/copycopter_client_tasks.rake |