Sha256: 1e0e67fda758d049201554c62af0a873f0f174a7f7cedd60632d32a415c55b51

Contents?: true

Size: 389 Bytes

Versions: 36

Compression:

Stored size: 389 Bytes

Contents

unless Rake::Task.task_defined?('cloudinary:sync_static') # prevent double-loading/execution
  namespace :cloudinary do
    desc "Sync static resources with cloudinary"
    task :sync_static => :environment do
      delete_missing = ENV['DELETE_MISSING'] == 'true' || ENV['DELETE_MISSING'] == '1'
      Cloudinary::Static.sync(:delete_missing => delete_missing)
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
cloudinary-2.2.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-2.1.2 lib/tasks/cloudinary/sync_static.rake
cloudinary-2.0.2 lib/tasks/cloudinary/sync_static.rake
cloudinary-2.0.1 lib/tasks/cloudinary/sync_static.rake
cloudinary-2.0.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.29.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.28.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.27.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.26.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.25.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.24.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.23.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.22.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.21.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.20.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.19.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.18.1 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.18.0 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.17.1 lib/tasks/cloudinary/sync_static.rake
cloudinary-1.17.0 lib/tasks/cloudinary/sync_static.rake