itamae-plugin-recipe-anyenv 0.3.45 → 0.4.0

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: c0f78a70119554d0afaf8396aca637edecf3154a
4
- data.tar.gz: a168468257b768cd51b83bab204d7498d55ad820
3
+ metadata.gz: be8205cf1be279a68647f6c944762f44bad3f02b
4
+ data.tar.gz: e42b2e3bcad168cabb45cd47bd363d6504605a9a
5
5
  SHA512:
6
- metadata.gz: d5084419c5649387639182ba47e72bc7506b622679a3fa60ead3095d03325a8667a471c1f61e375f72f7c71cc965d3999e24ca97523a259e558869b89231aa78
7
- data.tar.gz: 9016c405f73e87f0d86114a3653f356dc95c04cda23e5c27353c1739ea1520b2a4bb11514256599f8be01814f6457d65a4fb41a2ed76c4acb708f5c5239981de
6
+ metadata.gz: defa1a4925a071ab5715a0d60e72280c6de6f5b563f3a881f523a98ddf0e60cb030a0e211e3e759dca40e651cde2d0ae1c1deea0ee9a03fcca812e604d2a8033
7
+ data.tar.gz: 2f7e5542579ceff8ca6460562f67542ac9e2fc73263173f94c4d667e7351285bfb85b25e6257383f13d633202bf72d8d6465b472ba94664fbf99415a557147f4
data/README.md CHANGED
@@ -23,6 +23,12 @@ Or install it yourself as:
23
23
  ### System wide
24
24
  System wide anyenv installation
25
25
 
26
+ install directory is `ANYENV_ROOT` enviroment
27
+
28
+ `export ANYENV_ROOT=~/.anyenv`
29
+
30
+ or prease use the direnv
31
+
26
32
  #### Recipe
27
33
 
28
34
  ```ruby
@@ -36,7 +42,6 @@ Use this with `itamae -y node.yml`
36
42
 
37
43
  ```yml
38
44
  anyenv:
39
- anyenv_root: "/path/to/anyenv"
40
45
  install_versions:
41
46
  rbenv:
42
47
  - 2.2.2
@@ -54,64 +59,6 @@ export PATH="${ANYENV_ROOT}/.anyenv/bin:$PATH"
54
59
  if which anyenv > /dev/null; then eval "$(anyenv init -)"; fi
55
60
  ```
56
61
 
57
- ### Users
58
- #### Recipe
59
- ```ruby
60
- # your recipe
61
- include_recipe "anyenv::users"
62
- ```
63
-
64
- #### Node
65
- Use this with `itamae -y node.yml`
66
-
67
- ```yml
68
- anyenv:
69
- users:
70
- taro:
71
- install_versions:
72
- rbenv:
73
- - 2.2.2
74
- exenv:
75
- - 1.0.5
76
- jiro:
77
- anyenv_root: /opt/jiro/.anyenv
78
- install_versions:
79
- ndenv:
80
- - v0.12.7
81
- ```
82
-
83
- You can configure default attributes:
84
-
85
- ```yml
86
- anyenv:
87
- # default attributes
88
- install_versions:
89
- rbenv:
90
- - 2.2.2
91
- exenv:
92
- - 1.0.5
93
-
94
- # users configurations
95
- users:
96
- taro: {}
97
- jiro:
98
- install_versions:
99
- rbenv:
100
- - 2.2.3
101
- ```
102
-
103
- In default, use `/home/username/.anyenv` as anyenv root directory.
104
-
105
- #### .bashrc
106
-
107
- Recommend to append this to .bashrc in your server.
108
-
109
- ```bash
110
- export ANYENV_ROOT="/home/username/.anyenv"
111
- export PATH="${ANYENV_ROOT}/bin:$PATH"
112
- if which anyenv > /dev/null; then eval "$(anyenv init -)"; fi
113
- ```
114
-
115
62
  ## License
116
63
 
117
64
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -3,11 +3,6 @@ DEFAULT_ANYENV_ROOT = '/usr/local/anyenv'.freeze
3
3
  def run(attributes, username = ENV['USER'])
4
4
  init(username)
5
5
 
6
- p :USR
7
- p ENV['USER']
8
- p :ANYENV_ROOT
9
- p ENV['ANYENV_ROOT']
10
-
11
6
  clone_anyenv
12
7
  clone_anyenv_update
13
8
 
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Anyenv
5
- VERSION = '0.3.45'.freeze
5
+ VERSION = '0.4.0'.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.45
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Surume