-
-
Save wohckcin/996287a1446791fd8b12ef341743a190 to your computer and use it in GitHub Desktop.
Making ChefDK work with RVM
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
# Assumption: Mac OS X | |
CHEFDK="/opt/chefdk/embedded" | |
CHEFDK_USER="$HOME/.chefdk/gem/ruby/2.1.0" | |
RVM_GEMS="$HOME/.rvm/gems" | |
RVM_RUBIES="$HOME/.rvm/rubies" | |
RUBY_NAME="ext-chefdk-ruby" | |
mkdir -p $RVM_RUBIES/$RUBY_NAME | |
ln -s $CHEFDK/bin $RVM_RUBIES/$RUBY_NAME | |
ln -s $CHEFDK_USER $RVM_GEMS/$RUBY_NAME | |
ln -s $CHEFDK/lib/ruby/gems/2.1.0 $RVM_GEMS/$RUBY_NAME\@global | |
rvm alias create chefdk $RVM_NAME | |
rvm use chefdk | |
# Enjoy! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment