Sha256: 9b5ddc3be32b8da7d4d6d8233973e56f5ec408b269afaa61ff7646f308873ea0

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

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

Rake::Task['assets:precompile'].enhance do
  Rake::Task['assets:sync'].invoke if defined?(MultiSync) && MultiSync.run_on_build
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
multi_sync-0.0.1 lib/tasks/multi_sync_rails.rake