itamae-plugin-recipe-anyenv 0.3.14 → 0.3.15
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/version.rb +1 -1
- data/lib/itamae/plugin/recipe/anyenv.rb +7 -2
- 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: 7bad680fcd76c4cf181779216cc676b92c2071d1
|
4
|
+
data.tar.gz: e072f81a05becdcbc731179703da90f5e130faba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6252116e2d292016bcffe5860041b58607bac04fb27b239406bdd8cf21c4bb1a868ff0d83687661945bcd10bfc8c3b52e44ae986f3525a514c6afc81d37cece
|
7
|
+
data.tar.gz: 682d2f3e3bfb0708ab3a007efe224cdd6c07d93ebf5f2898a5ff34eda821bc83f2e7794bbe862c39fda18eba2a76641f486245845eb6dfe56391e43db723e788
|
@@ -116,8 +116,13 @@ def global_version(envname, version)
|
|
116
116
|
end
|
117
117
|
|
118
118
|
def init_cmd
|
119
|
-
execute "
|
119
|
+
execute "export ANYENV_ROOT=#{root_path}" do
|
120
|
+
user @username if @username
|
121
|
+
end
|
122
|
+
execute "export PATH=#{root_path}/bin:${PATH}" do
|
123
|
+
user @username if @username
|
124
|
+
end
|
125
|
+
execute 'eval "$(anyenv init -)"' do
|
120
126
|
user @username if @username
|
121
|
-
command @init_cmd
|
122
127
|
end
|
123
128
|
end
|