Sha256: 7efefb17d78c6e32b9c36a659cde9985e00045a085a661e146abb369d02f0dd1
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
module CapistranoDeploy 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 #{deploy_to} && RAILS_ENV=#{rails_env} RAILS_GROUPS=assets #{rake} assets:precompile" end desc 'Clean assets' task :clean do run "cd #{deploy_to} && RAILS_ENV=#{rails_env} RAILS_GROUPS=assets #{rake} assets:clean" end end end after 'deploy:update', 'deploy:assets:precompile' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-deploy-0.3.0 | lib/capistrano-deploy/rails_assets.rb |