Skip to content

Instantly share code, notes, and snippets.

@balvig
Created November 19, 2009 05:45
Show Gist options
  • Save balvig/238574 to your computer and use it in GitHub Desktop.
Save balvig/238574 to your computer and use it in GitHub Desktop.
VersionMaster reference
cap deploy # Normal deploy - does not increment version number
cap deploy:bump # Updates patch number and uploads version.yml
cap deploy:bump VER=minor # Updates minor version number and uploads version.yml
rake version:bump VER=patch # ==> Bumped version 1.0.0 --> 1.0.1
rake version:bump VER=minor # ==> Bumped version 1.0.1 --> 1.1.0
rake version:bump VER=major # ==> Bumped version 1.1.0 --> 2.0.0
rake version:bump # ==> Bumped version 2.0.0 --> 2.0.1
rake version:set VER=4.2.2 # ==> Changed version 2.0.1 --> 4.2.2
rake version # ==> Current version is 4.2.2
# version.yml
---
major: 1
minor: 0
patch: 0
<p>My App v.<%=APP_VERSION%></p> ==> <p>My App v.4.2.2</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment