voxpupuli / puppet-blacksmith

Ruby Gem with Puppet Module utilities
Apache License 2.0
69 stars 31 forks source link

Add version related commands for displaying current or next versions. #33

Closed fatmcgav closed 8 years ago

fatmcgav commented 8 years ago

Add 'version', 'version:next' and 'version:next:[patch|major|minor]' commands to output the current or next version of module. Useful for wrapping Blacksmith with git flow for example.

The naming structure was the most sensible I could think of, however could equally use 'module:next_version', 'module:version_next' etc...

carlossg commented 8 years ago

can you rebase?

fatmcgav commented 8 years ago

Rebased :)

fatmcgav commented 8 years ago

Just for anyone who's interested, here's how I'm using the new version commands in our work-flow :)

$ export BLACKSMITH_FULL_VERSION=`br module:version:next:minor`
$ git flow release start "v$BLACKSMITH_FULL_VERSION" &&\
 bundle exec rake module:bump_commit:full &&\
 git flow release finish "v$BLACKSMITH_FULL_VERSION" &&\
 git push --all && git push --tags
fatmcgav commented 8 years ago

@carlossg cheers for merging both my PR's quickly.

Next question.. Any chance of a release?