greenandsecure/knife-block — pull request #11 by mahmoudimus (2013-09-24 05:40:53+00:00)
Title: Support Chef < 11

Currently, knife-block depends on the `locate_config_file` which is a method that is not in Chef pre v11.

What I've done is extended the monkey patched `get_config_file` to check to see if the Chef version is less than version 11 and if it is, then, locate the config file using a copy & pasted version of `locate_config_file`.

I've updated the pasted version of `locate_config_file` and placed it in the `GreenAndSecure` namespace and fixed it up so it doesn't depend on `self` referencing `::Chef::Knife`.

I bumped the gem tag as well to `v0.0.9` so it's easier to build a new gem and publish it.

Cheers.