Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/civitaspo/itamae-plugin-recipe-sbtenv
https://github.com/civitaspo/itamae-plugin-recipe-sbtenv
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/civitaspo/itamae-plugin-recipe-sbtenv
- Owner: civitaspo
- License: mit
- Created: 2017-10-17T02:03:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T02:39:53.000Z (about 7 years ago)
- Last Synced: 2024-05-01T15:28:43.879Z (8 months ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Itamae::Plugin::Recipe::Sbtenv
[Itamae](https://github.com/ryotarai/itamae) plugin to install sbt with [sbtenv](https://github.com/sbtenv/sbtenv)
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'itamae-plugin-recipe-sbtenv'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install itamae-plugin-recipe-sbtenv
# Usage
## System wide installationInstall sbtenv to /usr/local/sbtenv or some shared path
### Recipe
```ruby
# your recipe
include_recipe "sbtenv::system"
```### Node
Use this with `itamae -y node.yml`
```yaml
# node.yml
sbtenv:
global: sbt-0.13.15
versions:
- sbt-0.13.15
- sbt-0.12.4# sbtenv install dir, optional (default: /usr/local/sbtenv)
sbtenv_root: "/path/to/sbtenv"# specify scheme to use in git clone, optional (default: git)
scheme: https
```### .bashrc
Recommend to append this to .bashrc in your server.
```bash
export SBTENV_ROOT=/usr/local/sbtenv
export PATH="${SBTENV_ROOT}/bin:${PATH}"
eval "$(sbtenv init -)"
```## Installation for a user
Install sbtenv to `~#{node[:sbtenv][:user]}/.sbtenv`
### Recipe
```ruby
# your recipe
include_recipe "sbtenv::user"
```### Node
Use this with `itamae -y node.yml`
```yaml
# node.yml
sbtenv:
user: civitaspo
global: sbt-0.13.15
versions:
- sbt-0.13.15
- sbt-0.12.4# specify scheme to use in git clone, optional (default: git)
scheme: https```
## Example
```
$ cd example
$ vagrant up
$ bundle exec itamae ssh --vagrant -y node.yml recipe.rb
```## MItamae
This plugin can be used for MItamae too. Put this repository under `./plugins` as git submodule.
```rb
node.reverse_merge!(
sbtenv: {
user: 'civitaspo',
global: 'sbt-0.13.15',
versions: %w[
sbt-0.13.15
sbt-0.12.4
],
}
)include_recipe "sbtenv::user"
```## License
MIT License