Sha256: dc61d509e048194956ed035064704b621f84fee765e156250c277e484e5b9571
Contents?: true
Size: 992 Bytes
Versions: 2
Compression:
Stored size: 992 Bytes
Contents
module CapistranoDeployManagement module RailsAssets def self.load_into(configuration) configuration.load do use_recipe :rails namespace :deploy do namespace :assets do desc 'Precompile assets.' task :precompile do run "cd #{current_path} && RAILS_ENV=#{rails_env} RAILS_GROUPS=assets #{rake} assets:precompile" end desc 'Clean assets.' task :clean do run "cd #{current_path} && RAILS_ENV=#{rails_env} RAILS_GROUPS=assets #{rake} assets:clean" end desc 'Clear application cache (e.g. Memcached).' task :refresh_cache, roles: :app do run "cd #{current_path} && rake cache:clear RAILS_ENV=#{rails_env}" end end end before 'deploy:assets:precompile', 'deploy:assets:clean' after 'deploy:assets:precompile', 'deploy:assets:refresh_cache' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano-deploy-management-0.1.2 | lib/capistrano-deploy-management/rails_assets.rb |
capistrano-deploy-management-0.1.1 | lib/capistrano-deploy-management/rails_assets.rb |