knife-spork
knife-spork copied to clipboard
Further improvements to bump
A continuation of #186 to further improve bumping from inside a cookbook directory.
As of spork 1.6.1 knife spork
can do this:
[01:31:43 ~/git/push-jobs]$ knife spork bump -o ..
WARNING: No knife configuration file found
Cookbook name omitted, but metadata.rb for cookbook push-jobs found - bumping that.
Successfully bumped push-jobs to v2.5.1!
It will be great to not have to specify -o ..
One way to do it is to add the parent directory(..
) to cookbook_path
when the cookbook name is not specified.
I've noticed that the major | minor |...
options are not working using this "inside the cookbook directory" use-case:
[01:31:55 ~/git/push-jobs]$ knife spork bump -o .. minor
WARNING: No knife configuration file found
ERROR: Chef::Exceptions::CookbookNotFound: Could not find cookbook 'minor' in any of the sources!
+1
no "-o .." no COOKBOOK_NAME no check for .chef/knife.rb etc.. just bump metadata.rb
Would love to see this work without the -o ..
and without needing the ${PWD##*/}
from the lovely alias in the linked issue. Only stumbled across this today after fighting with getting the right syntax and not having to specify a directory explicitly because we have MANY cookbooks across many repositories.