capistrano-nodenv 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -11
- data/capistrano-nodenv.gemspec +1 -1
- data/lib/capistrano/tasks/nodenv.rake +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6940e86d200e7cdec4790366d51dec1ceb3dd934
|
4
|
+
data.tar.gz: de053395285dd621071dba387f9fc7ab342c12e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fe08b1d16709aa81de3d08c697460d815e222fd773982da12f4f4b9b8614fe2ea3ed539284f44c2c0cb9af9934da5b7460547c6fd776ac9e61cc31e2a5efa1b
|
7
|
+
data.tar.gz: b39f735cce56ecbccf4f5f05f2a1bceda4597972e05725e935e212c1685fa6439168bcbe9b03514c8d0d372e0e88e4f9c81822123d6ed342bff1dad6d7508188
|
data/README.md
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
# Capistrano::nodenv
|
1
|
+
# Capistrano::nodenv [![Gem Version](https://badge.fury.io/rb/capistrano-nodenv.png)](http://badge.fury.io/rb/capistrano-nodenv)
|
2
2
|
|
3
3
|
## Installation
|
4
4
|
|
5
5
|
Add this line to your application's Gemfile:
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
```ruby
|
7
|
+
gem 'capistrano', '~> 3.1'
|
8
|
+
gem 'capistrano-nodenv', '~> 1.0'
|
9
|
+
```
|
9
10
|
|
10
11
|
And then execute:
|
11
12
|
|
@@ -14,18 +15,24 @@ And then execute:
|
|
14
15
|
|
15
16
|
## Usage
|
16
17
|
|
17
|
-
|
18
|
+
```ruby
|
19
|
+
# Capfile
|
18
20
|
|
19
|
-
|
21
|
+
require 'capistrano/nodenv'
|
20
22
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
set :nodenv_type, :user # or :system, depends on your nodenv setup
|
24
|
+
set :nodenv_node, '0.10.3'
|
25
|
+
set :nodenv_prefix, "NODENV_ROOT=#{fetch(:nodenv_path)} NODENV_VERSION=#{fetch(:nodenv_node)} #{fetch(:nodenv_path)}/bin/nodenv exec"
|
26
|
+
set :nodenv_map_bins, %w{node npm}
|
27
|
+
set :nodenv_roles, :all # default value
|
28
|
+
```
|
26
29
|
|
27
30
|
If your nodenv is located in some custom path, you can use `nodenv_custom_path` to set it.
|
28
31
|
|
32
|
+
## Thanks
|
33
|
+
|
34
|
+
Thanks to [capistrano/rbenv constributors](https://github.com/capistrano/rbenv/graphs/contributors) becasue I just modified that gem to work with nodenv
|
35
|
+
|
29
36
|
## Contributing
|
30
37
|
|
31
38
|
1. Fork it
|
@@ -33,3 +40,16 @@ If your nodenv is located in some custom path, you can use `nodenv_custom_path`
|
|
33
40
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
34
41
|
4. Push to the branch (`git push origin my-new-feature`)
|
35
42
|
5. Create new Pull Request
|
43
|
+
|
44
|
+
## Credits
|
45
|
+
|
46
|
+
Thank you [contributors](https://github.com/platanus/guides/graphs/contributors)!
|
47
|
+
|
48
|
+
<img src="http://platan.us/gravatar_with_text.png" alt="Platanus" width="250"/>
|
49
|
+
|
50
|
+
capistrano-nodenv is maintained by [platanus](http://platan.us).
|
51
|
+
|
52
|
+
## License
|
53
|
+
|
54
|
+
Guides is © 2014 platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.
|
55
|
+
|
data/capistrano-nodenv.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "capistrano-nodenv"
|
7
|
-
gem.version = '1.0.
|
7
|
+
gem.version = '1.0.1'
|
8
8
|
gem.authors = ["Juan Ignacio Donoso"]
|
9
9
|
gem.email = ["jidonoso@gmail.com"]
|
10
10
|
gem.description = %q{nodenv integration for Capistrano}
|
@@ -7,7 +7,7 @@ namespace :nodenv do
|
|
7
7
|
exit 1
|
8
8
|
end
|
9
9
|
|
10
|
-
|
10
|
+
unless test "[ -d #{fetch(:nodenv_node_dir)} ]"
|
11
11
|
error "nodenv: #{nodenv_node} is not installed or not found in #{fetch(:nodenv_node_dir)}"
|
12
12
|
exit 1
|
13
13
|
end
|
@@ -15,7 +15,7 @@ namespace :nodenv do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
task :map_bins do
|
18
|
-
SSHKit.config.default_env.merge!({ nodenv_root: fetch(:nodenv_path), nodenv_version: fetch(:
|
18
|
+
SSHKit.config.default_env.merge!({ nodenv_root: fetch(:nodenv_path), nodenv_version: fetch(:nodenv_node) })
|
19
19
|
nodenv_prefix = fetch(:nodenv_prefix, proc { "#{fetch(:nodenv_path)}/bin/nodenv exec" })
|
20
20
|
SSHKit.config.command_map[:nodenv] = "#{fetch(:nodenv_path)}/bin/nodenv"
|
21
21
|
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-nodenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Ignacio Donoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sshkit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.3'
|
41
41
|
description: nodenv integration for Capistrano
|
@@ -45,7 +45,7 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
-
|
48
|
+
- .gitignore
|
49
49
|
- CHANGELOG.md
|
50
50
|
- Gemfile
|
51
51
|
- README.md
|
@@ -63,17 +63,17 @@ require_paths:
|
|
63
63
|
- lib
|
64
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- -
|
71
|
+
- - '>='
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
75
|
rubyforge_project:
|
76
|
-
rubygems_version: 2.
|
76
|
+
rubygems_version: 2.4.6
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: nodenv integration for Capistrano
|