<commit_before>Cookbook Development
====================

This repository contains a number of helpers for chef cookbook development.
This predominantly includes:

- Vagrantfile which provides a local Docker instance to be used for
  converging cookbooks
- rake tasks for use during development
- gem dependencies to use in all cookbooks
- foodcritic rules

This is an opinionated testing setup from Rally Software, it's public
for others to use but largely reflects our own development workflow and
preferences. 

## Using in a Cookbook

To use this repository and it's capabilities in a cookbook you need to
add it to your Gemfile like this:

```
gem 'cookbook-development', :git =>
'https://github.com/RallySoftware-cookbooks/cookbook-development'
```

Run `bundle update && bundle install` to install the latest version

## VagrantFile

The VagrantFile included in this repository will download and start a
very small VM running the
[boot2docker](https://github.com/steeve/boot2docker) distro which is
tuned to be an in-memory docker VM. The box itself is very small (~24<commit_msg>Created place holder for fixes to breaks from 1.x<commit_after>Cookbook Development
====================

This repository contains a number of helpers for chef cookbook development.
This predominantly includes:

- Vagrantfile which provides a local Docker instance to be used for
  converging cookbooks
- rake tasks for use during development
- gem dependencies to use in all cookbooks
- foodcritic rules

This is an opinionated testing setup from Rally Software, it's public
for others to use but largely reflects our own development workflow and
preferences. 

## Updating to version 1.0.0

If you are using pre 1.x versions of this updating will break some
things as the 1.x version used ChefSpec 4.2

You need to take care of any deprcration notices and things that broke
because they have been removed.

Here are some common fixes for depercrated breaks

## Using in a Cookbook

To use this repository and it's capabilities in a cookbook you need to
add it to your Gemfile like this:

```
gem 'cookbook-development', :git =>
'https://github.com/RallySoftware-cookbooks/cookbook-development'
```

Run `bundle update && bundle install` to install the latest version

## VagrantFile

The VagrantFile included in this repository will download and start a
very small VM running the
[boot2docker](https://github.com/steeve/boot2docker) distro which is
tuned to be an in-memory docker VM. The box itself is very small (~24
{'fraction_non_alphanumeric': 0.06661348224970083, 'fraction_numerical': 0.006382130035899481, 'mean_word_length': 4.7, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3415246', 'n_tokens_mistral': 690, 'n_tokens_neox': 645, 'n_words': 340}