forked from alup/puppet-rbenv
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify rbenv setup by using an .rbenvrc file
- Loading branch information
Showing
2 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# This is a shell fragment that initializes rbenv, if it | ||
# has not been inited yet. Managed by puppet - DO NOT EDIT | ||
# | ||
if ! echo $PATH | grep -q rbenv; then | ||
export PATH="<%= scope.lookupvar('rbenv::paths::root') %>/<%= scope.lookupvar('rbenv::paths::dest') %>/bin:$PATH" | ||
eval "$(rbenv init -)" | ||
fi |