itamae-plugin-recipe-anyenv 0.3.20 → 0.3.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00c756477a358241cb08eb1220a52e132007fdf5
4
- data.tar.gz: 5595642e770855bca517d3c519f389ce45c1a47b
3
+ metadata.gz: ec26afcd10ea1b771e4b2917959a75c484e585a0
4
+ data.tar.gz: 17b087b8130cfe20082972a494070ae1f66bfa43
5
5
  SHA512:
6
- metadata.gz: d30abd2e1047b3baafd35ece27ff6a29c811297738e00d7f4afc697dccc40300d5b44a83b4d69378c695abb59c2632365e3253b97ba0a36cd988f0a97fa36e8b
7
- data.tar.gz: 5da9731bdfeb1b995b4bf19f2c8dcc76692d28a897784705c9e5e911111bc11207008ccd39ee9cdd789a5275b7d031ace9df8dddbcf5a7a6f18289e6c4462d4b
6
+ metadata.gz: c41fe80c20c8d89b803166591b87f6c2889594693c64242c46df0553bf0b368ad1ab249b270723023ffb9543f9964ccd8eb6d3a8bf29db20f08c78de88307728
7
+ data.tar.gz: 86add740debaf76097cac7c0fd578eb762ab8246fe05479628d980a797e7168dd4177e5ff853fbe7879727576a4c34b6f7b22512a34f819130eb52d6a74344d4
@@ -14,20 +14,29 @@ def run(attributes, username = ENV['USER'])
14
14
  clone_anyenv_update(root_path)
15
15
 
16
16
  directory "#{root_path}/envs"
17
+
18
+ execute <<-"EOS".gsub("\n", ' ')
19
+ export ANYENV_ROOT=#{root_path};
20
+ export PATH=#{root_path}/bin:${PATH};
21
+ eval "$(anyenv init -)";
22
+ anyenv install rbenv;
23
+ EOS
24
+
17
25
  # install_envs(attributes)
18
26
  end
19
27
 
20
28
  private
21
29
 
30
+ def scheme
31
+ @scheme ||= node[:anyenv][:scheme] || 'git'
32
+ end
33
+
22
34
  # def init(username)
23
35
  # @username = username
24
36
  # @anyenv_root_path = anyenv_root(username)
25
37
  # @init_cmd = anyenv_init(@anyenv_root_path)
26
38
  # end
27
39
 
28
- # def scheme
29
- # @scheme ||= node[:anyenv][:scheme] || 'git'
30
- # end
31
40
 
32
41
  # def anyenv_root(username)
33
42
  # return anyenv_system_root if username.nil?
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Anyenv
5
- VERSION = '0.3.20'.freeze
5
+ VERSION = '0.3.21'.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.20
4
+ version: 0.3.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Surume