Sha256: ee70a816b426090a4ac69223c79c73fcfd354c9b38b280454de37bbb6503c60d
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 Bytes
Contents
module CapistranoDeployManagement module RailsAssets def self.load_into(configuration) configuration.load do use_recipe :rails namespace :deploy do namespace :assets do desc 'Clear application cache (e.g. Memcached).' task :refresh_cache, roles: :app do run "cd #{current_path} && rake cache:clear RAILS_ENV=#{rails_env}" # Requires this rake task: (include here!?) # namespace :cache do # desc 'Clear memcache' # task clear: :environment do # Rails.cache.clear # end # end end end end after 'deploy:update', '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.47 | lib/capistrano-deploy-management/rails_assets.rb |
capistrano-deploy-management-0.1.28 | lib/capistrano-deploy-management/rails_assets.rb |