Sha256: 668869c1c03eb3f5e16ee30bbe4bffce6a01309ad677012b6cc1210c0db4ae8d

Contents?: true

Size: 625 Bytes

Versions: 3

Compression:

Stored size: 625 Bytes

Contents

require 'cart_logger'

module CartBinaryUploader
  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cartup-1.0.1 lib/git_tools/git_helper.rb
cartup-1.0.0 lib/git_tools/git_helper.rb
cartup-0.1.7.1 lib/git_helper.rb