Sha256: f6e3bb18f39adc0fe9e45fa9c0a42a261801477c6a85ef69a27b1006e73a943a

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  after 'deploy:update_code', 'deploy:asset_hat:minify'

  namespace :deploy do
    namespace :asset_hat do
      desc 'Minify all CSS/JS with Asset Hat'
      task :minify, :roles => :assets, :except => {:no_release => true} do
        rake = fetch(:rake, "rake")
        env = fetch(:environment, fetch(:rails_env, "production"))
        run "cd #{current_path} ; #{rake} RAILS_ENV=#{env} asset_hat:minify"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
asset_hat-0.2.1 lib/asset_hat/capistrano.rb
asset_hat-0.2.0 lib/asset_hat/capistrano.rb