itamae-plugin-recipe-anyenv 0.3.42 → 0.3.43

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: d32d67c44d0ed85ba6123d731c9e22da38295410
4
- data.tar.gz: f9021c3d0e5d39688fdc7275c51242900b8be01f
3
+ metadata.gz: cb5ecb4090c20c63454271110218f0c7ab5fd617
4
+ data.tar.gz: 1c41b91dca91a4c5109b96da9fe01d420055ac10
5
5
  SHA512:
6
- metadata.gz: 9ee0c604deb1bf5d1281fe7c250c1a72a78df0f6c153078ac9269fc52a292eed1616cf5a25e20c526c12137e5b84997dedf273b6d37388527235a9607c1de7a9
7
- data.tar.gz: 08ba14bc4a850a8bf219f538424d22a387fb9b6e014740959adeea35192f1f27c64802108cc35e796b5802ef80917ce0ff9d09be481613f7c7efb4b08afeb431
6
+ metadata.gz: d3526bd814ea518401c46b1f440cf5795dddc9d7df2960a4ceebecc1c0c526a382d02798d03d1ad5d0e759a04d03cfe3b0cc3bcd24d2332ebba7a527398db18d
7
+ data.tar.gz: 05fc9aa1fba187be6248cf82e0a34ab68c66336d824bb6beaf4c79b7b2094fbffc3760ff271bfb8478608d2f0082c77208bc5ba63cd4a010c5018244ed5671fb
@@ -27,7 +27,7 @@ def init(username)
27
27
  @root_path = ENV['ANYENV_ROOT'] || DEFAULT_ANYENV_ROOT
28
28
  end
29
29
 
30
- def anyenv_init_with(root_path, command)
30
+ def anyenv_init_with(command)
31
31
  <<-"EOS".gsub("\n", ' ')
32
32
  export ANYENV_ROOT=#{root_path};
33
33
  export PATH=#{root_path}/bin:${PATH};
@@ -70,10 +70,10 @@ def install_envs(attributes)
70
70
  end
71
71
 
72
72
  def install_env(envname)
73
- exec = anyenv_init_with @root_path, <<-EOS
73
+ exec = anyenv_init_with <<-EOS
74
74
  yes | anyenv install #{envname}
75
75
  EOS
76
- is_exec = anyenv_init_with @root_path, "type #{envname}"
76
+ is_exec = anyenv_init_with "type #{envname}"
77
77
 
78
78
  execute "install #{envname}" do
79
79
  user @username if @username
@@ -83,10 +83,10 @@ def install_env(envname)
83
83
  end
84
84
 
85
85
  def install_env_version(envname, version)
86
- exec = anyenv_init_with @root_path, <<-EOS
86
+ exec = anyenv_init_with <<-EOS
87
87
  yes | #{envname} install #{version}
88
88
  EOS
89
- is_exec = anyenv_init_with @root_path, "#{envname} versions | grep #{version}"
89
+ is_exec = anyenv_init_with "#{envname} versions | grep #{version}"
90
90
 
91
91
  execute "#{envname} install #{version}" do
92
92
  user @username if @username
@@ -96,11 +96,11 @@ def install_env_version(envname, version)
96
96
  end
97
97
 
98
98
  def global_version(envname, version)
99
- exec = anyenv_init_with @root_path, <<-EOS
99
+ exec = anyenv_init_with <<-EOS
100
100
  #{envname} global;
101
101
  #{version}; #{envname} rehash;
102
102
  EOS
103
- is_exec = anyenv_init_with @root_path, "#{envname} versions | grep #{version}"
103
+ is_exec = anyenv_init_with "#{envname} versions | grep #{version}"
104
104
 
105
105
  execute "#{envname} global #{version}" do
106
106
  user @username if @username
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Anyenv
5
- VERSION = '0.3.42'.freeze
5
+ VERSION = '0.3.43'.freeze
6
6
  end
7
7
  end
8
8
  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.42
4
+ version: 0.3.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Surume