Getting started with ChefSpec
In order to get started with ChefSpec, create a new cookbook directory (here it is
$HOME/cookbooks/mycookbook) along with a
mkdir -p ~/cookbooks/mycookbook mkdir -p ~/cookbooks/mycookbook/recipes mkdir -p ~/cookbooks/mycookbook/spec
Now you will need a simple
metadata.rb file inside your cookbook (here, this will be
maintainer "Your name here" maintainer_email "firstname.lastname@example.org" license "Apache" description "Simple cookbook" long_description "Super simple cookbook" version "1.0" supports "debian"
Once we have this, we now have the bare bones of a cookbook that we can begin to add recipes and tests to.
In order to get started with ChefSpec, ...