itamae-plugin-recipe-anyenv 0.3.29 → 0.3.30
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/lib/itamae/plugin/recipe/anyenv.rb +20 -19
- 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: 2243ac302e93550b4adacb024e660e0ab43cc95e
|
|
4
|
+
data.tar.gz: 702f99f93b9a644c4cdc082615967d11df89fd08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e689a57e4cb07474995481e3af98303dd44f46845670cecf63ae979afef7341513fe814c255db4f0c0533b8b0cc00c3baa60228089e29fec2006b3826dfa3d0
|
|
7
|
+
data.tar.gz: ebdf7a1082751e2d0fa371348c3d5af73cb83fbfb7445bd0b83632f131f8a22f5e379e2319827d75db4a7fec3e87cf163cf27e58cb127aa7a22a103cf0987c7c
|
|
@@ -13,13 +13,6 @@ def run(attributes, username = ENV['USER'])
|
|
|
13
13
|
|
|
14
14
|
directory "#{@root_path}/envs"
|
|
15
15
|
|
|
16
|
-
# install('anyenv', 'rbenv')
|
|
17
|
-
# install('rbenv', '2.3.1')
|
|
18
|
-
# install('anyenv', 'exenv')
|
|
19
|
-
# install('exenv', '1.3.2')
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
16
|
install_envs(attributes)
|
|
24
17
|
end
|
|
25
18
|
|
|
@@ -43,10 +36,10 @@ end
|
|
|
43
36
|
|
|
44
37
|
def install(from, to)
|
|
45
38
|
execute <<-"EOS".gsub("\n", ' ')
|
|
46
|
-
export ANYENV_ROOT=#{@root_path};
|
|
47
|
-
export PATH=#{@root_path}/bin:${PATH};
|
|
48
|
-
eval "$(anyenv init -)";
|
|
49
|
-
yes | #{from} install #{to};
|
|
39
|
+
export ANYENV_ROOT=#{@root_path};
|
|
40
|
+
export PATH=#{@root_path}/bin:${PATH};
|
|
41
|
+
eval "$(anyenv init -)";
|
|
42
|
+
yes | #{from} install #{to};
|
|
50
43
|
EOS
|
|
51
44
|
end
|
|
52
45
|
|
|
@@ -140,12 +133,20 @@ end
|
|
|
140
133
|
# end
|
|
141
134
|
|
|
142
135
|
def global_version(envname, version)
|
|
143
|
-
execute "
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
136
|
+
execute <<-"EOS".gsub("\n", ' ')
|
|
137
|
+
export ANYENV_ROOT=#{@root_path};
|
|
138
|
+
export PATH=#{@root_path}/bin:${PATH};
|
|
139
|
+
eval "$(anyenv init -)";
|
|
140
|
+
#{envname} global #{version};
|
|
141
|
+
#{envname} rehash;
|
|
142
|
+
EOS
|
|
143
|
+
|
|
144
|
+
# execute "#{envname} global #{version}" do
|
|
145
|
+
# user @username if @username
|
|
146
|
+
# command <<-EOS
|
|
147
|
+
# #{envname} global #{version};
|
|
148
|
+
# #{envname} rehash;
|
|
149
|
+
# EOS
|
|
150
|
+
# not_if "#{envname} global | grep #{version}"
|
|
151
|
+
# end
|
|
151
152
|
end
|