lib/git_helper.rb in cartup-0.1.6 vs lib/git_helper.rb in cartup-0.1.7
- old
+ new
@@ -1,27 +1,27 @@
require 'cart_logger'
class GitHelper
- def tagTo version
- CartLogger.logInfo "Tagging version to: " + version
+ def tag_to version
+ CartLogger.log_info "Tagging version to: #{version}"
begin
- cmd = "git tag -f " + version
- exec( cmd )
- CartLogger.logInfo "Version tagged"
+ cmd = "git tag -f #{version}"
+ exec(cmd)
+ CartLogger.log_info 'Version tagged'
rescue
- CartLogger.logError "Problem to generate tag on git"
+ CartLogger.log_error 'Problem to generate tag on git'
end
end
def push
- CartLogger.logInfo "Pushing tag to Git "
+ CartLogger.log_info 'Pushing tag to Git '
begin
- cmd = "git push --tags"
+ cmd = 'git push --tags'
exec( cmd )
- CartLogger.logInfo "Tag pushed"
+ CartLogger.log_info 'Tag pushed'
rescue
- CartLogger.logError "Problem to push tag on git"
+ CartLogger.log_error 'Problem to push tag on git'
end
end
end
\ No newline at end of file