TODO: Why in the hell does the cookbook exist?
TODO: What does the cookbook require to run?
['porta_user']['attribute_name']
- TODO: What attributes does the cookbook define?
TODO: What does the default recipe do?
TODO: What are the resources provided by the cookbook?
porta_user "portaj" do
action :create
github_username "jonathanporta"
sudo true
end
TODO: How can the cookbook be used?
-
Clone this repository from GitHub:
$ git clone git@github.com:_username_/_repo_.git
-
Create a git branch
$ git checkout -b feature/my_shiny_new_thang
-
Install dependencies:
$ bundle install
-
Make your changes/patches/fixes, committing appropiately
-
Write tests
-
Run the tests:
chef exec rake
- Runs foodcritic, rspec, rubocop, and kitchen test Run tests individually:chef exec foodcritic -f any .
chef exec rspec
chef exec rubocop
chef exec kitchen test
In detail: - Foodcritic will catch any Chef-specific style errors - RSpec will run the unit tests - Rubocop will check for Ruby-specific style errors - Test Kitchen will run and converge the recipes
You can have Guard watch files and automatically run tests as you make changes: $ bundle exec guard
Author: Jonathan Porta
Copyright (C) 2015 Jonathan Porta
Please see LICENSE
for a copy of the license.