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