chef-partners/cookbook-guide-generator

View on GitHub
cookbooks/code_generator/files/default/repo/policies/README.md

Summary

Maintainability
Test Coverage
Create policyfiles here. When using a chef-repo, give your policyfiles
the same filename as the name set in the policyfile itself, and use the
`.rb` file extension.

Compile the policy with a command like this:

```
chef install policies/my-app-frontend.rb
```

This will create a lockfile `policies/my-app-frontend.lock.json`.

To update locked dependencies, run `chef update` like this:

```
chef update policies/my-app-frontend.rb
```

You can upload the policy (with associated cookbooks) to the server
using a command like:

```
chef push staging policies/my-app-frontend.rb
```