Recently I have developed cookbook and it has got version 0.1.0.
Then I have added more recipes for this cook. I want to bump version to 0.2.0.
I want to see both version when I do "knife cookbook show test".
Please help me how to do this.
Recently I have developed cookbook and it has got version 0.1.0.
Then I have added more recipes for this cook. I want to bump version to 0.2.0.
I want to see both version when I do "knife cookbook show test".
Please help me how to do this.
Change the version in your metadata.rb
file and then run knife cookbook upload test
(or use some other cookbook upload tool if you prefer).
Found this lovely alias while searching for an easier way to do the same thing. https://github.com/jonlives/knife-spork/issues/186#issue-77717477
alias bump='knife spork bump ${PWD##*/} -o ..'
You can also do it without the ${PWD}
bit, but that doesn't work if you are trying to specify major/minor/patch.
knife spork
is part of the ChefDK so it should be usable on any machine where you have that installed.