Sha256: c3c1cdf0be35d6dae972a128c6fe451e90c964ae3e5bad45c3b2e1db94c3bda7

Contents?: true

Size: 303 Bytes

Versions: 3

Compression:

Stored size: 303 Bytes

Contents

class GitHelper

  def fetch_tags
    `git fetch --tags`
  end

  def all_tags
    `git tag -l`.lines
  end

  def get_tags_for_this_commit
    `git tag --points-at HEAD`.lines
  end

  def apply_tag(tag)
    `git tag #{tag}`
  end

  def push_tag_to_remote(tag)
    `git push origin #{tag}`
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
build_promotion_tool-0.1.3 lib/build_promotion_tool/helper/git_helper.rb
build_promotion_tool-0.1.2 lib/build_promotion_tool/helper/git_helper.rb
build_promotion_tool-0.1.1 lib/build_promotion_tool/helper/git_helper.rb