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

Version Path
copy_tuner_client-0.2.3 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.2.2 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.2.1 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.2.0 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta19 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta18 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta17 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta16 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta15 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta14 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta13 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta12 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta11 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta10 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.0.15 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta9 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta8 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta7 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta6 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.1.1.beta5 lib/tasks/copy_tuner_client_tasks.rake