itamae-plugin-recipe-anyenv 0.1.9 → 0.1.10

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: 7b3f0f6278cca9abf2df3bdc416d7ded8280443d
4
- data.tar.gz: b9646107111b8364a083c115f0104c839ee3ea7f
3
+ metadata.gz: 404378ff2943e02839ce229c11a70628a1a49bb8
4
+ data.tar.gz: 9a48f114a81e353dfb8c758a53f0a49916f67a3a
5
5
  SHA512:
6
- metadata.gz: f3b5addb41c18c39cae8c9830dcbc349fe58490f6bf1f9c4413997758a91b89332fbabf7abec7d25ee798108e11c921de760fa861b912d94948b9f610621be86
7
- data.tar.gz: 83e192b75f0a3d74fa263925368a2d1c75f9b143af6006858dbf5b5b1d47262991909b7d978319457c7ad425497ac24d06f566973e65a1d05a0ac6ce526347c6
6
+ metadata.gz: 3b242798b3581277e4acb4ec38f41cc055b780301c3f7594b3bf593b8cc3c13ce64139d15c57078353c294bfe7c0936eaf10ca7534c3f3d8de9071cf6d806ddb
7
+ data.tar.gz: 25746b9d63588aa05b7c94d6a83fed7fd53529d2ddc3fe59dd46094d682d594da6860e4e9168a554b3e1e5c48bf36461f1c7f54833ae5b145085dc28dd79a3b8
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ vendor
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
+ [![Gem Version](https://badge.fury.io/rb/itamae-plugin-recipe-anyenv.svg)](http://badge.fury.io/rb/itamae-plugin-recipe-anyenv)
1
2
  # Itamae::Plugin::Recipe::Anyenv
2
3
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/itamae/plugin/recipe/anyenv`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
4
+ Itamae plugin to install anyenv
6
5
 
7
6
  ## Installation
8
7
 
@@ -22,18 +21,41 @@ Or install it yourself as:
22
21
 
23
22
  ## Usage
24
23
 
25
- TODO: Write usage instructions here
24
+ System wide anyenv installation
26
25
 
27
- ## Development
26
+ ### Recipe
28
27
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+ ```ruby
29
+ # your recipe
30
+ include_recipe "anyenv::system"
31
+ ```
30
32
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
33
+ ### Node
34
+
35
+ Use this with `itamae -y node.yml`
36
+
37
+ ```yml
38
+ anyenv:
39
+ anyenv_root: "/path/to/anyenv"
40
+ install_envs:
41
+ - rbenv
42
+ - exenv
43
+ install_versions:
44
+ - rbenv:
45
+ - 2.2.2
46
+ - exenv:
47
+ - 1.0.5
48
+ ```
32
49
 
33
- ## Contributing
50
+ ### .bashrc
34
51
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/itamae-plugin-recipe-anyenv. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
52
+ Recommend to append this to .bashrc in your server.
36
53
 
54
+ ```bash
55
+ export ANYENV_ROOT="/usr/local/anyenv"
56
+ export PATH="${ANYENV_ROOT}/.anyenv/bin:$PATH"
57
+ if which anyenv > /dev/null; then eval "$(anyenv init -)"; fi
58
+ ```
37
59
 
38
60
  ## License
39
61
 
@@ -20,7 +20,7 @@ node[:anyenv][:install_envs].each do |env|
20
20
  command "#{anyenv_init} anyenv install #{env}"
21
21
  not_if "type #{env}"
22
22
  end
23
- not_if "$SHELL -l; #{anyenv_init} anyenv versions | grep #{name} versions"
23
+ not_if "$SHELL -l; #{anyenv_init} anyenv versions | grep #{env} versions"
24
24
  end
25
25
 
26
26
  node[:anyenv][:install_versions].each do |envs|
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Anyenv
5
- VERSION = "0.1.9"
5
+ VERSION = "0.1.10"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-anyenv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Surume
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-15 00:00:00.000000000 Z
11
+ date: 2015-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae