Sha256: 0662d32609cbd4b76b46df7e9bac5ef42cb10a34311350fb9d5631c025b86ea0
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 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 #{release_path} ; " + "#{rake} RAILS_ENV=#{env} FORMAT=short asset_hat:minify" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asset_hat-0.4.2 | lib/asset_hat/capistrano.rb |