Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Making ChefDK work with RVM
# 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!
@darkn3rd

This comment has been minimized.

Copy link

@darkn3rd darkn3rd commented Mar 11, 2018

Where is RVM_NAME initialized?

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