itamae-plugin-recipe-anyenv 0.3.14 → 0.3.15

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a329f4a78b20f85c3ccbaf4ffd12d34f84112d9
4
- data.tar.gz: 5e1e50580cfe2291ad699fb75b81704b499cf476
3
+ metadata.gz: 7bad680fcd76c4cf181779216cc676b92c2071d1
4
+ data.tar.gz: e072f81a05becdcbc731179703da90f5e130faba
5
5
  SHA512:
6
- metadata.gz: ee7601299191289b5b0605283b4c084c0e0d6f0f25a21d55dd2394125a82dda0eec20e6d181f0b460b86616c41e60a841a2af773844044322c61f57e80e4e479
7
- data.tar.gz: 455fd133193a6be30de40e2f1505a7a5564bb4d6c06d024f808f8d54d4a61739275bee617fbe92d87d66c51342dab658568cf349c1589b2499dbd4cbb8c84129
6
+ metadata.gz: d6252116e2d292016bcffe5860041b58607bac04fb27b239406bdd8cf21c4bb1a868ff0d83687661945bcd10bfc8c3b52e44ae986f3525a514c6afc81d37cece
7
+ data.tar.gz: 682d2f3e3bfb0708ab3a007efe224cdd6c07d93ebf5f2898a5ff34eda821bc83f2e7794bbe862c39fda18eba2a76641f486245845eb6dfe56391e43db723e788
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Anyenv
5
- VERSION = '0.3.14'.freeze
5
+ VERSION = '0.3.15'.freeze
6
6
  end
7
7
  end
8
8
  end
@@ -116,8 +116,13 @@ def global_version(envname, version)
116
116
  end
117
117
 
118
118
  def init_cmd
119
- execute "anyenv init" do
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-anyenv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.14
4
+ version: 0.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Surume