lib/capistrano/local_precompile.rb in capistrano-local-precompile-1.1.3 vs lib/capistrano/local_precompile.rb in capistrano-local-precompile-1.1.4
- old
+ new
@@ -1,10 +1,10 @@
namespace :load do
task :defaults do
set :precompile_env, fetch(:rails_env) || 'production'
set :assets_dir, "public/assets"
- set :packs_dir, "public/packs"
+ set :packs_dir, "public/packs"
set :rsync_cmd, "rsync -av --delete"
set :assets_role, "web"
after "bundler:install", "deploy:assets:prepare"
after "deploy:assets:prepare", "deploy:assets:rsync"
@@ -16,11 +16,11 @@
namespace :assets do
desc "Remove all local precompiled assets"
task :cleanup do
run_locally do
with rails_env: fetch(:precompile_env) do
- execute "rm -rf", fetch(:assets_dir)
- execute "rm -rf", fetch(:packs_dir)
+ execute "rm", "-rf", fetch(:assets_dir)
+ execute "rm", "-rf", fetch(:packs_dir)
end
end
end
desc "Actually precompile the assets locally"