Sha256: ac20b15685451091f9170291496d399d939f37a8ead358ffc0f8fa292877d879

Contents?: true

Size: 363 Bytes

Versions: 3

Compression:

Stored size: 363 Bytes

Contents

namespace :deploy do
  desc 'Normalise asset timestamps'
  task :normalise_assets do
    on roles :web do
      within release_path do
        assets = %{public/images public/javascripts public/stylesheets}
        execute :find, "#{assets} -exec touch -t #{asset_timestamp} {} ';'; true"
      end
    end
  end

  after :finalize, 'deploy:normalise_assets'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capistrano-rails-0.0.4 lib/capistrano/tasks/assets.rake
capistrano-rails-0.0.3 lib/capistrano/tasks/assets.rake
capistrano-rails-0.0.2 lib/capistrano/tasks/assets.rake