Skip to content

Commit

Permalink
Allow setting the gemsets via the RBENV_GEMSET_NAMES environment vari…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
halorgium committed Mar 26, 2012
1 parent baea333 commit 504dd0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libexec/rbenv-gemset-active
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ set -e

gemset_file="$(rbenv-gemset-file 2>/dev/null || true)"

if [ -n "$gemset_file" ]; then
if [ -n "$RBENV_GEMSET_NAMES" ]; then
echo $RBENV_GEMSET_NAMES
elif [ -n "$gemset_file" ]; then
cat "$gemset_file"
else
echo "no active gemsets" >&2
Expand Down

0 comments on commit 504dd0f

Please sign in to comment.