Sha256: e3e09828c65fae3f677470f747d53dc0bf7c1c2a0ae7df19f1131c2af238a2b3

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

require "nightcrawler_swift"

namespace :nightcrawler_swift do
  namespace :rails do

    desc "Synchronizes the public directory with OpenStack Swift"
    task asset_sync: ["assets:precompile", "environment"] do
      raise unless defined?(Rails)
      NightcrawlerSwift.sync File.join(Rails.root, "public")
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nightcrawler_swift-0.2.3 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.2.2 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.2.1 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.2.0 lib/nightcrawler_swift/tasks/asset_sync.rake