Sha256: 50e2cf81cda4a09b3261f1b38d9d1dc49dc94d3be403b0f14862bf62d7d78f19
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
require 'multi_sync' namespace :assets do desc 'Synchronize assets' task :sync => :environment do ActiveSupport::Notifications.instrument 'multi_sync.run' do MultiSync::Extensions::AssetSync.check_and_migrate MultiSync.run if MultiSync.run_on_build end end end if Rake::Task.task_defined?('assets:precompile:nondigest') Rake::Task['assets:precompile:nondigest'].enhance do Rake::Task['assets:sync'].invoke if defined?(MultiSync) end else Rake::Task['assets:precompile'].enhance do Rake::Task['assets:sync'].invoke if defined?(MultiSync) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
multi_sync-0.0.4 | lib/tasks/multi_sync_rails.rake |
multi_sync-0.0.3 | lib/tasks/multi_sync_rails.rake |