Sha256: 31ae67c007b7ec3ba10b94af6d3c3cff88c0fcde03e815f8cc8dd55f3735ea57
Contents?: true
Size: 865 Bytes
Versions: 6
Compression:
Stored size: 865 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 raise "No blurbs have been cached." end end desc "Detect invalid keys." task :detect_conflict_keys => :environment do conflict_keys = CopyTunerClient::DottedHash.conflict_keys(CopyTunerClient.cache.blurbs) if conflict_keys.empty? puts 'All success' else pp conflict_keys raise 'Exists invalid keys' end end end
Version data entries
6 entries across 6 versions & 1 rubygems