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

Version Path
nightcrawler_swift-1.0.0 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.11.1 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.11.0 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.10.0 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.9.0 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.8.1 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.8.0 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.7.0 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.6.0 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.5.0 lib/nightcrawler_swift/tasks/asset_sync.rake
nightcrawler_swift-0.4.0 lib/nightcrawler_swift/tasks/asset_sync.rake