itamae-plugin-recipe-anyenv 0.3.24 → 0.3.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/itamae/plugin/recipe/anyenv.rb +12 -27
- 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: 4ad7776889a3ea70a41d029eba714f47c87c83f9
|
4
|
+
data.tar.gz: 05c95921e54bdff4b3feee7472471cf85eca5525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76d32b8a31d52a4f005fbb156298aac750315ee357254cb7f6301a908b04351ae441ffe7888d723a44b358da7c42e76895b41fb0707149bbf553de6c7422f311
|
7
|
+
data.tar.gz: 2466a9c2763b560e5a41bc15121613de64206b77ae7c0bfcd9a193c404681fe3f1293767d9b0dc55804e5c9249d4f4d0a42fd001c0e6c989ea72b04cc861dc07
|
@@ -15,33 +15,10 @@ def run(attributes, username = ENV['USER'])
|
|
15
15
|
|
16
16
|
directory "#{root_path}/envs"
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
yes | anyenv install rbenv;
|
23
|
-
EOS
|
24
|
-
|
25
|
-
execute <<-"EOS".gsub("\n", ' ')
|
26
|
-
export ANYENV_ROOT=#{root_path};
|
27
|
-
export PATH=#{root_path}/bin:${PATH};
|
28
|
-
eval "$(anyenv init -)";
|
29
|
-
yes | rbenv install 2.3.1;
|
30
|
-
EOS
|
31
|
-
|
32
|
-
execute <<-"EOS".gsub("\n", ' ')
|
33
|
-
export ANYENV_ROOT=#{root_path};
|
34
|
-
export PATH=#{root_path}/bin:${PATH};
|
35
|
-
eval "$(anyenv init -)";
|
36
|
-
yes | anyenv install exenv;
|
37
|
-
EOS
|
38
|
-
|
39
|
-
execute <<-"EOS".gsub("\n", ' ')
|
40
|
-
export ANYENV_ROOT=#{root_path};
|
41
|
-
export PATH=#{root_path}/bin:${PATH};
|
42
|
-
eval "$(anyenv init -)";
|
43
|
-
yes | exenv install 1.0.0;
|
44
|
-
EOS
|
18
|
+
install('anyenv', 'rbenv', root_path)
|
19
|
+
install('rbenv', '2.3.1', root_path)
|
20
|
+
install('anyenv', 'exenv', root_path)
|
21
|
+
install('exenv', '1.3.2', root_path)
|
45
22
|
|
46
23
|
|
47
24
|
|
@@ -54,6 +31,14 @@ def scheme
|
|
54
31
|
@scheme ||= node[:anyenv][:scheme] || 'git'
|
55
32
|
end
|
56
33
|
|
34
|
+
def install(from, to, root_path)
|
35
|
+
execute <<-"EOS".gsub("\n", ' ')
|
36
|
+
export ANYENV_ROOT=#{root_path};
|
37
|
+
export PATH=#{root_path}/bin:${PATH};
|
38
|
+
eval "$(anyenv init -)";
|
39
|
+
yes | #{from} install #{to};
|
40
|
+
EOS
|
41
|
+
end
|
57
42
|
# def init(username)
|
58
43
|
# @username = username
|
59
44
|
# @anyenv_root_path = anyenv_root(username)
|