lib/asset_hat/capistrano.rb in asset_hat-0.2.1 vs lib/asset_hat/capistrano.rb in asset_hat-0.3.0
- old
+ new
@@ -1,14 +1,15 @@
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'
+ 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} asset_hat:minify"
+ env = fetch(:environment, fetch(:rails_env, "production"))
+ run "cd #{current_path} ; " +
+ "#{rake} RAILS_ENV=#{env} FORMAT=short asset_hat:minify"
end
end
end
end