Sha256: 604bd3026ea3cbf0fcab1bc73d2e12f92c9feba54c585bb3213f55f45727cd45
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 Bytes
Contents
require 'cart_logger' class GitHelper 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 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cartup-0.1.7 | lib/git_helper.rb |