itamae-plugin-recipe-anyenv 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +31 -9
- data/lib/itamae/plugin/recipe/anyenv/system.rb +1 -1
- data/lib/itamae/plugin/recipe/anyenv/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 404378ff2943e02839ce229c11a70628a1a49bb8
|
4
|
+
data.tar.gz: 9a48f114a81e353dfb8c758a53f0a49916f67a3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b242798b3581277e4acb4ec38f41cc055b780301c3f7594b3bf593b8cc3c13ce64139d15c57078353c294bfe7c0936eaf10ca7534c3f3d8de9071cf6d806ddb
|
7
|
+
data.tar.gz: 25746b9d63588aa05b7c94d6a83fed7fd53529d2ddc3fe59dd46094d682d594da6860e4e9168a554b3e1e5c48bf36461f1c7f54833ae5b145085dc28dd79a3b8
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/itamae-plugin-recipe-anyenv.svg)](http://badge.fury.io/rb/itamae-plugin-recipe-anyenv)
|
1
2
|
# Itamae::Plugin::Recipe::Anyenv
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
4
|
+
Itamae plugin to install anyenv
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
@@ -22,18 +21,41 @@ Or install it yourself as:
|
|
22
21
|
|
23
22
|
## Usage
|
24
23
|
|
25
|
-
|
24
|
+
System wide anyenv installation
|
26
25
|
|
27
|
-
|
26
|
+
### Recipe
|
28
27
|
|
29
|
-
|
28
|
+
```ruby
|
29
|
+
# your recipe
|
30
|
+
include_recipe "anyenv::system"
|
31
|
+
```
|
30
32
|
|
31
|
-
|
33
|
+
### Node
|
34
|
+
|
35
|
+
Use this with `itamae -y node.yml`
|
36
|
+
|
37
|
+
```yml
|
38
|
+
anyenv:
|
39
|
+
anyenv_root: "/path/to/anyenv"
|
40
|
+
install_envs:
|
41
|
+
- rbenv
|
42
|
+
- exenv
|
43
|
+
install_versions:
|
44
|
+
- rbenv:
|
45
|
+
- 2.2.2
|
46
|
+
- exenv:
|
47
|
+
- 1.0.5
|
48
|
+
```
|
32
49
|
|
33
|
-
|
50
|
+
### .bashrc
|
34
51
|
|
35
|
-
|
52
|
+
Recommend to append this to .bashrc in your server.
|
36
53
|
|
54
|
+
```bash
|
55
|
+
export ANYENV_ROOT="/usr/local/anyenv"
|
56
|
+
export PATH="${ANYENV_ROOT}/.anyenv/bin:$PATH"
|
57
|
+
if which anyenv > /dev/null; then eval "$(anyenv init -)"; fi
|
58
|
+
```
|
37
59
|
|
38
60
|
## License
|
39
61
|
|
@@ -20,7 +20,7 @@ node[:anyenv][:install_envs].each do |env|
|
|
20
20
|
command "#{anyenv_init} anyenv install #{env}"
|
21
21
|
not_if "type #{env}"
|
22
22
|
end
|
23
|
-
not_if "$SHELL -l; #{anyenv_init} anyenv versions | grep #{
|
23
|
+
not_if "$SHELL -l; #{anyenv_init} anyenv versions | grep #{env} versions"
|
24
24
|
end
|
25
25
|
|
26
26
|
node[:anyenv][:install_versions].each do |envs|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-recipe-anyenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Surume
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: itamae
|