Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f9fca9
commit 54fbef9
Showing
3 changed files
with
31 additions
and
0 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
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# RVM-aware chef-client wrapper | ||
# | ||
# Generated by Chef for <%= node[:fqdn] %> | ||
# Local modifications will be overridden | ||
|
||
if [[ -d "<%= node['rvm']['root_path'] %>" ]] ; then | ||
export PATH="/bin:<%= node['rvm']['root_path'] %>:$PATH" | ||
rvm_path='<%= node['rvm']['root_path'] %>' | ||
export rvm_path | ||
unset RUBY_VERSION | ||
unset GEM_HOME | ||
unset GEM_PATH | ||
unset MY_RUBY_HOME | ||
unset IRBRC | ||
rvm_ruby_string='system' | ||
export rvm_ruby_string | ||
unset rvm_gemset_name | ||
unset MAGLEV_HOME | ||
fi | ||
|
||
exec <%= node['rvm']['vagrant']['system_chef_client'] %> "$@" |