Skip to content

Instantly share code, notes, and snippets.

@geopet
Last active December 21, 2015 14:59
Show Gist options
  • Save geopet/6323836 to your computer and use it in GitHub Desktop.
Save geopet/6323836 to your computer and use it in GitHub Desktop.
rbenv-deps:
pkg.installed:
- pkgs:
- bash
- git
- openssl
- make
- curl
ruby-2.0.0-p247:
rbenv.installed:
- default: True
- require:
- pkg: rbenv-deps
rbenv-script:
cmd.script:
- source: salt://scripts/rbenv.sh
- require:
- module: ruby-2.0.0-p247
#!/bin/bash
echo 'export RBENV_ROOT=/usr/local/rbenv' >> ~/.profile
echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
source ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment