Class: GitHelper
- Inherits:
-
Object
- Object
- GitHelper
- Defined in:
- lib/git_helper.rb
Instance Method Summary collapse
Instance Method Details
#push ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/git_helper.rb', line 16 def push CartLogger.logInfo "Pushing tag to Git " begin cmd = "git push --tags" exec( cmd ) CartLogger.logInfo "Tag pushed" rescue CartLogger.logError "Problem to push tag on git" end end |
#tagTo(version) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/git_helper.rb', line 5 def tagTo version CartLogger.logInfo "Tagging version to: " + version begin cmd = "git tag -f " + version exec( cmd ) CartLogger.logInfo "Version tagged" rescue CartLogger.logError "Problem to generate tag on git" end end |