itamae-plugin-recipe-anyenv 0.3.45 → 0.4.0
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 +4 -4
- data/README.md +6 -59
- data/lib/itamae/plugin/recipe/anyenv.rb +0 -5
- data/lib/itamae/plugin/recipe/anyenv/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be8205cf1be279a68647f6c944762f44bad3f02b
|
|
4
|
+
data.tar.gz: e42b2e3bcad168cabb45cd47bd363d6504605a9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: defa1a4925a071ab5715a0d60e72280c6de6f5b563f3a881f523a98ddf0e60cb030a0e211e3e759dca40e651cde2d0ae1c1deea0ee9a03fcca812e604d2a8033
|
|
7
|
+
data.tar.gz: 2f7e5542579ceff8ca6460562f67542ac9e2fc73263173f94c4d667e7351285bfb85b25e6257383f13d633202bf72d8d6465b472ba94664fbf99415a557147f4
|
data/README.md
CHANGED
|
@@ -23,6 +23,12 @@ Or install it yourself as:
|
|
|
23
23
|
### System wide
|
|
24
24
|
System wide anyenv installation
|
|
25
25
|
|
|
26
|
+
install directory is `ANYENV_ROOT` enviroment
|
|
27
|
+
|
|
28
|
+
`export ANYENV_ROOT=~/.anyenv`
|
|
29
|
+
|
|
30
|
+
or prease use the direnv
|
|
31
|
+
|
|
26
32
|
#### Recipe
|
|
27
33
|
|
|
28
34
|
```ruby
|
|
@@ -36,7 +42,6 @@ Use this with `itamae -y node.yml`
|
|
|
36
42
|
|
|
37
43
|
```yml
|
|
38
44
|
anyenv:
|
|
39
|
-
anyenv_root: "/path/to/anyenv"
|
|
40
45
|
install_versions:
|
|
41
46
|
rbenv:
|
|
42
47
|
- 2.2.2
|
|
@@ -54,64 +59,6 @@ export PATH="${ANYENV_ROOT}/.anyenv/bin:$PATH"
|
|
|
54
59
|
if which anyenv > /dev/null; then eval "$(anyenv init -)"; fi
|
|
55
60
|
```
|
|
56
61
|
|
|
57
|
-
### Users
|
|
58
|
-
#### Recipe
|
|
59
|
-
```ruby
|
|
60
|
-
# your recipe
|
|
61
|
-
include_recipe "anyenv::users"
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
#### Node
|
|
65
|
-
Use this with `itamae -y node.yml`
|
|
66
|
-
|
|
67
|
-
```yml
|
|
68
|
-
anyenv:
|
|
69
|
-
users:
|
|
70
|
-
taro:
|
|
71
|
-
install_versions:
|
|
72
|
-
rbenv:
|
|
73
|
-
- 2.2.2
|
|
74
|
-
exenv:
|
|
75
|
-
- 1.0.5
|
|
76
|
-
jiro:
|
|
77
|
-
anyenv_root: /opt/jiro/.anyenv
|
|
78
|
-
install_versions:
|
|
79
|
-
ndenv:
|
|
80
|
-
- v0.12.7
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
You can configure default attributes:
|
|
84
|
-
|
|
85
|
-
```yml
|
|
86
|
-
anyenv:
|
|
87
|
-
# default attributes
|
|
88
|
-
install_versions:
|
|
89
|
-
rbenv:
|
|
90
|
-
- 2.2.2
|
|
91
|
-
exenv:
|
|
92
|
-
- 1.0.5
|
|
93
|
-
|
|
94
|
-
# users configurations
|
|
95
|
-
users:
|
|
96
|
-
taro: {}
|
|
97
|
-
jiro:
|
|
98
|
-
install_versions:
|
|
99
|
-
rbenv:
|
|
100
|
-
- 2.2.3
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
In default, use `/home/username/.anyenv` as anyenv root directory.
|
|
104
|
-
|
|
105
|
-
#### .bashrc
|
|
106
|
-
|
|
107
|
-
Recommend to append this to .bashrc in your server.
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
export ANYENV_ROOT="/home/username/.anyenv"
|
|
111
|
-
export PATH="${ANYENV_ROOT}/bin:$PATH"
|
|
112
|
-
if which anyenv > /dev/null; then eval "$(anyenv init -)"; fi
|
|
113
|
-
```
|
|
114
|
-
|
|
115
62
|
## License
|
|
116
63
|
|
|
117
64
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|