capistrano-npm 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57bebf464bf69d58ba01d925f24b5fce18e70e3d
4
- data.tar.gz: 1d44ef3e51840674559b71024c582ed4d039ea53
3
+ metadata.gz: 132ed999bf7afe299dac7588e10aab31882650cd
4
+ data.tar.gz: afbf6a78baff77a10b069e811d2f7678741bbfa8
5
5
  SHA512:
6
- metadata.gz: 5f9f6b65371bab8951bbd53a90677dd6655120959b53fede2735a381422180e8bf8544885901f9569a6623d38176d5157ef5c3f1dd020af22125edc795591183
7
- data.tar.gz: e08d44e691cbfd675f2ab005f4ec4f624560ca004ac98efaa8f78c13007232bd2980362cab0b014a2e4f7de4d36f60dc0697fd75c1e66241f3dbbd2d331c763d
6
+ metadata.gz: e74440a21355f159a125dfa38dad6edf420a5b3ed9a20de5263f23a55331fa95bcfb8bd37ca29a978422e4a5b0548d7687005e74993c911009cb2557039ba6dd
7
+ data.tar.gz: 39fcb2336eb56688628fa3c0509b5445e56e885a11bff818236f09e40cbed6c509a90343177b60afcfca2d1df1f18dc397052c21798ac2236f8bb8c943d5f949
data/README.md CHANGED
@@ -30,9 +30,10 @@ require 'capistrano/npm'
30
30
  The task will run before `deploy:updated` as part of Capistrano's default deploy,
31
31
  or can be run in isolation with `cap production npm:install`
32
32
 
33
- Configurable options, shown here with defaults:
33
+ Configurable options, shown here with their defaults:
34
34
 
35
35
  ```ruby
36
+ set :npm_target_path, nil
36
37
  set :npm_flags, '--production --silent'
37
38
  set :npm_roles, :all
38
39
  ```
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'capistrano-npm'
7
- spec.version = '0.0.3'
7
+ spec.version = '0.0.4'
8
8
  spec.authors = ['Scott Walkinshaw']
9
9
  spec.email = ['scott.walkinshaw@gmail.com']
10
10
  spec.description = %q{npm support for Capistrano 3.x}
@@ -1 +1 @@
1
- load File.expand_path('../tasks/npm.cap', __FILE__)
1
+ load File.expand_path('../tasks/npm.rake', __FILE__)
@@ -6,14 +6,14 @@ namespace :npm do
6
6
 
7
7
  You can override any of these defaults by setting the variables shown below.
8
8
 
9
+ set :npm_target_path, nil
9
10
  set :npm_flags, '--production --silent'
10
11
  set :npm_roles, :all
11
12
  DESC
12
13
  task :install do
13
14
  on roles fetch(:npm_roles) do
14
- within release_path do
15
- execute :npm, "install",
16
- fetch(:npm_flags)
15
+ within fetch(:npm_target_path, :release_path) do
16
+ execute :npm, 'install', fetch(:npm_flags)
17
17
  end
18
18
  end
19
19
  end
@@ -23,6 +23,7 @@ end
23
23
 
24
24
  namespace :load do
25
25
  task :defaults do
26
+ set :npm_target_path, nil
26
27
  set :npm_flags, '--production --silent'
27
28
  set :npm_roles, :all
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-npm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Walkinshaw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-06 00:00:00.000000000 Z
11
+ date: 2013-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -67,7 +67,7 @@ files:
67
67
  - capistrano-npm.gemspec
68
68
  - lib/capistrano-npm.rb
69
69
  - lib/capistrano/npm.rb
70
- - lib/capistrano/tasks/npm.cap
70
+ - lib/capistrano/tasks/npm.rake
71
71
  homepage: https://github.com/capistrano/npm
72
72
  licenses:
73
73
  - MIT