Spife is a simple command line tool which helps bumping a cookbook by automatically updating the metadata.rb file and pushing the changes.
You can use the binary inside the bin directory
- Install Go.
- Run
go build spife.go
, which will generate the spife binary.
# spife -h
Usage of spife:
-bump-level="patch": Version level to bump the cookbook
-git-push=true: Whether or not changes should be committed.
-git-remotes="upstream, origin": Comma separated list of Git remotes
-git-use-follow-tags=true: Use the Git directive --follow-tags.
-path="": Full or relative path to the cookbook directory. REQUIRED.
spife -path .
spife -bump-level major -git-push=true -git-remotes "upstream, origin" -path ~/cookbook/mycookbook