Sha256: 9480919013de84465e917f08d99036abb3fe76563932c7a5ffab4f8d123d5307

Contents?: true

Size: 560 Bytes

Versions: 3

Compression:

Stored size: 560 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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
copy_tuner_client-0.4.12 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.4.11 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.4.10 lib/tasks/copy_tuner_client_tasks.rake