lib/capistrano/tasks/npm.rake in capistrano-npm-1.0.2 vs lib/capistrano/tasks/npm.rake in capistrano-npm-1.0.3
- old
+ new
@@ -8,16 +8,17 @@
set :npm_target_path, nil
set :npm_flags, '--production --silent --no-spin'
set :npm_roles, :all
set :npm_env_variables, {}
+ set :npm_method, 'install'
DESC
task :install do
on roles fetch(:npm_roles) do
within fetch(:npm_target_path, release_path) do
with fetch(:npm_env_variables, {}) do
- execute :npm, 'install', fetch(:npm_flags)
+ execute :npm, fetch(:npm_method), fetch(:npm_flags)
end
end
end
end
@@ -68,7 +69,8 @@
namespace :load do
task :defaults do
set :npm_flags, %w(--production --silent --no-progress)
set :npm_prune_flags, '--production'
set :npm_roles, :all
+ set :npm_method, 'install'
end
end