Skip to content

Instantly share code, notes, and snippets.

@asnodgrass
Last active September 29, 2018 00:50
Show Gist options
  • Save asnodgrass/36d88ffcb76b4068c62c to your computer and use it in GitHub Desktop.
Save asnodgrass/36d88ffcb76b4068c62c to your computer and use it in GitHub Desktop.
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
Copy link

Where is RVM_NAME initialized?

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