RiotGames/motherbrain — pull request #675 by rteabeault (2014-03-04 22:03:58+00:00)
Title: Issue #665 - Use cookbook versions found Berksfile.lock if found.

The plugin is who has knowledge of the root path. During plugin creation look for the Berksfile.lock in the root and if found set an attribute called cookbook_version to a hash of all the locked dependencies. This can then be used by the upgrade/bootstrap manager/worker to use either the cookbook_version passed on the command line or the cookbook versions in the plugin.

- Added Berksfile.locl to myface test fixture
- Added berkshelf as a first class dependency
- Added wrapper around Berkshelf::Lockfile
- Have the plugin try to parse its cookbook dependencies from the Berksfile.lock.
- Hide the --cookbooks option and print a deprecation warning.
- Bootstrap checks cookbook_versions in options first then checks for versions in the plugin.
- Upgrade checks cookbook_versions in options first then checks for versions in the plugin.