Sha256: 6f9775c51721a1b89c447bdc54a002ed0e59af89fc34808bb9b42b9ba1c6b775
Contents?: true
Size: 582 Bytes
Versions: 11
Compression:
Stored size: 582 Bytes
Contents
require "nightcrawler_swift" namespace :nightcrawler_swift do namespace :rails do desc "Synchronizes the public directory with OpenStack Swift" task sync: ["environment"] do begin NightcrawlerSwift.sync File.join(Rails.root, "public") rescue => e STDERR.puts e.message exit 1 end end desc "Run 'assets:precompile' and synchronizes the public directory with OpenStack Swift" task :asset_sync do Rake::Task["assets:precompile"].invoke Rake::Task["nightcrawler_swift:rails:sync"].invoke end end end
Version data entries
11 entries across 11 versions & 1 rubygems