Sha256: e3ca84c59389375be10f448f29531c35038aa5d0a153545127bf0fba309a0ee9
Contents?: true
Size: 559 Bytes
Versions: 17
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
17 entries across 17 versions & 1 rubygems