Skip to content

Using batali with chefdk

Sean Escriva edited this page Jul 3, 2015 · 1 revision

Batali and the 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.

Installing directly

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 Bundler

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

Clone this wiki locally