greenandsecure/knife-block — pull request #22 by woohgit (2014-06-13 19:09:33+00:00)
Title: Fixes #15

If there is no knife.rb at all, the `config[:config_file]` variable will be `nil`. Later the `File.dirname(config[:config_file])` will throw an exception, even when running `knife block new`, so it's impossible to create a config using the knife block for the first time.

I think it's a good practice to fall back to ~/.chef when no knife.rb could be located.