opscode/chef-dk — pull request #249 by danielsdeleo (2014-11-24 23:51:22+00:00)
Title: Export Policyfile as Chef Zero-compatible repo

:construction: **NEEDS TESTS FOR CLI CLASS**

Export a policy as a Chef Zero compatible repo. The immediate goal for this work is to enable policyfiles to be run in TK via a TK provisioner (will be created after this is merged), but it also enables chef-solo-style workflows to be used by packaging and distributing policy repos via an out-of-band mechanism and running chef-client in local mode.

Looking for feedback on the `force` option: is it too strict? Should `--force` only be required if a `cookbooks` and/or `data_bags` directory is present? Should the cleanup that `--force` implies only affect those directories?

@opscode/client-engineers