chef-cooker
chef-cooker will be able to create cookbook of Chef easily. yay ;)
Installation
Add this line to your application's Gemfile:
gem 'chef-cooker'
And then execute:
$ bundle
Or install it yourself as:
$ gem install chef-cooker
Usage
Suppose if we want cookbook of tree
chef-cooker does:
knife cookbook create tree --cookbook-path cookbooks
- Add
package 'tree'
line to recipes/default.rb - Commit with Git.
$ chef-cooker tree
WARNING: No knife configuration file found
Do you want to append package to cookbooks/tree/recipes/default.rb? [y/N] : y
append cookbooks/tree/recipes/default.rb
Do you want to commit? [y/N] : y
run git add cookbooks/tree from "."
run git commit -m "Add tree" from "."
[master a2469db] Add tree
3 files changed, 28 insertions(+)
create mode 100644 cookbooks/tree/README.md
create mode 100644 cookbooks/tree/metadata.rb
create mode 100644 cookbooks/tree/recipes/default.rb
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request