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

Version Path
copy_tuner_client-0.4.9 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.4.8 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.4.7 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.4.6 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.4.5 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.4.4 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.4.3 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.4.2 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.4.1 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.4.0 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.3.5 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.3.4 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.3.3 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.3.2 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.3.1 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.3.0 lib/tasks/copy_tuner_client_tasks.rake
copy_tuner_client-0.2.4 lib/tasks/copy_tuner_client_tasks.rake