Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further improvements to bump #192

Open
alexpop opened this issue Aug 18, 2015 · 2 comments
Open

Further improvements to bump #192

alexpop opened this issue Aug 18, 2015 · 2 comments

Comments

@alexpop
Copy link

alexpop commented Aug 18, 2015

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!
@epcim
Copy link

epcim commented Oct 16, 2015

+1

no "-o .."
no COOKBOOK_NAME
no check for .chef/knife.rb etc.. just bump metadata.rb

@dragon788
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants