Sha256: fc453af1fd83aea3a3f8ec342e1975b316281438c454810fa1300bf118f2117c
Contents?: true
Size: 523 Bytes
Versions: 4
Compression:
Stored size: 523 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 AssetHat' 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} FORMAT=short asset_hat:minify" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
asset_hat-0.4.1 | lib/asset_hat/capistrano.rb |
asset_hat-0.4.0 | lib/asset_hat/capistrano.rb |
asset_hat-0.3.1 | lib/asset_hat/capistrano.rb |
asset_hat-0.3.0 | lib/asset_hat/capistrano.rb |