itamae-plugin-recipe-anyenv 0.3.20 → 0.3.21
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 -3
- 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: ec26afcd10ea1b771e4b2917959a75c484e585a0
|
4
|
+
data.tar.gz: 17b087b8130cfe20082972a494070ae1f66bfa43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c41fe80c20c8d89b803166591b87f6c2889594693c64242c46df0553bf0b368ad1ab249b270723023ffb9543f9964ccd8eb6d3a8bf29db20f08c78de88307728
|
7
|
+
data.tar.gz: 86add740debaf76097cac7c0fd578eb762ab8246fe05479628d980a797e7168dd4177e5ff853fbe7879727576a4c34b6f7b22512a34f819130eb52d6a74344d4
|
@@ -14,20 +14,29 @@ def run(attributes, username = ENV['USER'])
|
|
14
14
|
clone_anyenv_update(root_path)
|
15
15
|
|
16
16
|
directory "#{root_path}/envs"
|
17
|
+
|
18
|
+
execute <<-"EOS".gsub("\n", ' ')
|
19
|
+
export ANYENV_ROOT=#{root_path};
|
20
|
+
export PATH=#{root_path}/bin:${PATH};
|
21
|
+
eval "$(anyenv init -)";
|
22
|
+
anyenv install rbenv;
|
23
|
+
EOS
|
24
|
+
|
17
25
|
# install_envs(attributes)
|
18
26
|
end
|
19
27
|
|
20
28
|
private
|
21
29
|
|
30
|
+
def scheme
|
31
|
+
@scheme ||= node[:anyenv][:scheme] || 'git'
|
32
|
+
end
|
33
|
+
|
22
34
|
# def init(username)
|
23
35
|
# @username = username
|
24
36
|
# @anyenv_root_path = anyenv_root(username)
|
25
37
|
# @init_cmd = anyenv_init(@anyenv_root_path)
|
26
38
|
# end
|
27
39
|
|
28
|
-
# def scheme
|
29
|
-
# @scheme ||= node[:anyenv][:scheme] || 'git'
|
30
|
-
# end
|
31
40
|
|
32
41
|
# def anyenv_root(username)
|
33
42
|
# return anyenv_system_root if username.nil?
|