Sha256: d5fe02a25ed128069f122dccec1a8be43499a6a8cbd1f8777bacc7ea38f75d9f

Contents?: true

Size: 1.94 KB

Versions: 46

Compression:

Stored size: 1.94 KB

Contents

[![Gem Version](http://badge.fury.io/rb/itamae-plugin-recipe-anyenv.svg)](http://badge.fury.io/rb/itamae-plugin-recipe-anyenv)
# Itamae::Plugin::Recipe::Anyenv

Itamae plugin to install anyenv

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'itamae-plugin-recipe-anyenv'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install itamae-plugin-recipe-anyenv

## Usage
### System wide
System wide anyenv installation

#### Recipe

```ruby
# your recipe
include_recipe "anyenv::system"
```

#### Node

Use this with `itamae -y node.yml`

```yml
anyenv:
  anyenv_root: "/path/to/anyenv"
  install_versions:
    rbenv:
      - 2.2.2
    exenv:
      - 1.0.5
```

#### .bashrc

Recommend to append this to .bashrc in your server.

```bash
export ANYENV_ROOT="/usr/local/anyenv"
export PATH="${ANYENV_ROOT}/.anyenv/bin:$PATH"
if which anyenv > /dev/null; then eval "$(anyenv init -)"; fi
```

### Users
#### Recipe
```ruby
# your recipe
include_recipe "anyenv::users"
```

#### Node
Use this with `itamae -y node.yml`

```yml
anyenv:
  users:
    taro:
      install_versions:
        rbenv:
          - 2.2.2
        exenv:
          - 1.0.5
    jiro:
      anyenv_root: /opt/jiro/.anyenv
      install_versions:
        ndenv:
          - v0.12.7
```

You can configure default attributes:

```yml
anyenv:
  # default attributes
  install_versions:
    rbenv:
      - 2.2.2
    exenv:
      - 1.0.5

  # users configurations
  users:
    taro: {}
    jiro:
      install_versions:
        rbenv:
          - 2.2.3
```

In default, use `/home/username/.anyenv` as anyenv root directory.

#### .bashrc

Recommend to append this to .bashrc in your server.

```bash
export ANYENV_ROOT="/home/username/.anyenv"
export PATH="${ANYENV_ROOT}/bin:$PATH"
if which anyenv > /dev/null; then eval "$(anyenv init -)"; fi
```

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
itamae-plugin-recipe-anyenv-0.3.45 README.md
itamae-plugin-recipe-anyenv-0.3.44 README.md
itamae-plugin-recipe-anyenv-0.3.43 README.md
itamae-plugin-recipe-anyenv-0.3.42 README.md
itamae-plugin-recipe-anyenv-0.3.41 README.md
itamae-plugin-recipe-anyenv-0.3.40 README.md
itamae-plugin-recipe-anyenv-0.3.39 README.md
itamae-plugin-recipe-anyenv-0.3.38 README.md
itamae-plugin-recipe-anyenv-0.3.37 README.md
itamae-plugin-recipe-anyenv-0.3.36 README.md
itamae-plugin-recipe-anyenv-0.3.35 README.md
itamae-plugin-recipe-anyenv-0.3.34 README.md
itamae-plugin-recipe-anyenv-0.3.33 README.md
itamae-plugin-recipe-anyenv-0.3.32 README.md
itamae-plugin-recipe-anyenv-0.3.31 README.md
itamae-plugin-recipe-anyenv-0.3.30 README.md
itamae-plugin-recipe-anyenv-0.3.29 README.md
itamae-plugin-recipe-anyenv-0.3.28 README.md
itamae-plugin-recipe-anyenv-0.3.27 README.md
itamae-plugin-recipe-anyenv-0.3.26 README.md