What is the difference between package
and include_recipe
?
For example,
package 'git'
include_recipe 'git'
When would I include a recipe as opposed to declare a package dependency?
package 'git'
installs a package called git
using the system packaging system (apt-get install git
, yum install git
, etc).
include_recipe 'git'
executes the default recipe in the git
cookbook (git/recipes/default.rb
).