No commit activity in last 3 years
No release in over 3 years
Itamae plugin to install sbt with sbtenv
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 1.7
>= 10.0

Runtime

>= 1.2
 Project Readme

Itamae::Plugin::Recipe::Sbtenv

Itamae plugin to install sbt with sbtenv

Installation

Add this line to your application's Gemfile:

gem 'itamae-plugin-recipe-sbtenv'

And then execute:

$ bundle

Or install it yourself as:

$ gem install itamae-plugin-recipe-sbtenv

Usage

System wide installation

Install sbtenv to /usr/local/sbtenv or some shared path

Recipe

# your recipe
include_recipe "sbtenv::system"

Node

Use this with itamae -y node.yml

# 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.

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

# your recipe
include_recipe "sbtenv::user"

Node

Use this with itamae -y node.yml

# 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.

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