Skip to content

Instantly share code, notes, and snippets.

@iansheridan
Forked from chrismytton/Pow.md
Created May 16, 2013 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iansheridan/5588914 to your computer and use it in GitHub Desktop.
Save iansheridan/5588914 to your computer and use it in GitHub Desktop.

chruby can be used with pow to select a specific Ruby per project, or system-wide.

System wide

To set a default Ruby for all pow apps, puts the following in ~/.powconfig.

~/.powconfig

source /usr/local/share/chruby/chruby.sh
RUBIES=(~/.rubies/*)
chruby 1.9

Adjust the paths to match your install. This assumes that you have installed a ruby that matches *1.9*.

Per app

To set a Ruby for a single application put the following in .powrc or .powenv in your applications root directory. See Choosing the Right Environment Script in the pow manual for details on which file to use.

.powrc or .powenv

source /usr/local/share/chruby/chruby.sh
RUBIES=(~/.rubies/*)
chruby 1.9

Adjust the paths to match your install. This assumes that you have installed a ruby that matches *1.9*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment