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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a670c76d75b9e15683a6c582ef8b447c441f9e1d
4
- data.tar.gz: 5e506bf964bb134c69c0af7e5b75c4e5b0038ac0
3
+ metadata.gz: 2243ac302e93550b4adacb024e660e0ab43cc95e
4
+ data.tar.gz: 702f99f93b9a644c4cdc082615967d11df89fd08
5
5
  SHA512:
6
- metadata.gz: 7fad5c673c86e43e040ea48a42d9a8427de8b4e0a82b85fa2c4b39bc4f374d4b9940c4beb54af4217487c487f1cd94e494d81349591ae857f2d84e08eb9130d9
7
- data.tar.gz: 13b12c4536a86954f6c7111cc4954f2ecc7f178939ab69c7d779b56edac8117f807c6c3d27cec26288f4a1597e4991fa7a7624431fcaef403888dbf3609c31cc
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 "#{envname} global #{version}" do
144
- user @username if @username
145
- command <<-EOS
146
- #{envname} global #{version};
147
- #{envname} rehash;
148
- EOS
149
- not_if "#{envname} global | grep #{version}"
150
- end
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
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Anyenv
5
- VERSION = '0.3.29'.freeze
5
+ VERSION = '0.3.30'.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.29
4
+ version: 0.3.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Surume