-
Notifications
You must be signed in to change notification settings - Fork 6
Using batali with chefdk
Batali works very well alongside the Chef Development Kit. You can use bundler and the infrastructure repository workflow, or install the batali gem directly. Which one you use will depend on what is best for your team and your preferences. At HW we find the infrastructure repository approach works very well.
Batali can be install directly to the ChefDK gems using:
$ chef gem install batali
If you use ruby only for Chef development and are using the ChefDK as your main ruby, you can simply use:
$ gem install batali
Using batali with bundler is just like using any other gem. Simply add it to the Gemfile
at the root of your infrastructure repository:
source 'https://rubygems.org'
gem "batali"
and run bundle install
or alternately bundle install --path vendor --binstubs
.
If you choose to generate binstubs you will have a bin
folder created with the executables
You can now use any of the batali commands as listed on the Basics page