Sha256: 72c8f7c3dc7847a12d3148fab57cf8acaa197bd3b30bc084d699339f79ac787b
Contents?: true
Size: 559 Bytes
Versions: 37
Compression:
Stored size: 559 Bytes
Contents
namespace :copy_tuner do desc "Notify CopyTuner of a new deploy." task :deploy => :environment do CopyTunerClient.deploy puts "Successfully marked all blurbs as published." end desc "Export CopyTuner blurbs to yaml." task :export => :environment do CopyTunerClient.cache.sync if yml = CopyTunerClient.export PATH = "config/locales/copy_tuner.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
37 entries across 37 versions & 1 rubygems