class GitHelper

Public Instance Methods

all_tags() click to toggle source
# File lib/build_promotion_tool/helper/git_helper.rb, line 7
def all_tags
  `git tag -l`.lines
end
apply_tag(tag) click to toggle source
# File lib/build_promotion_tool/helper/git_helper.rb, line 15
def apply_tag(tag)
  `git tag #{tag}`
end
fetch_tags() click to toggle source
# File lib/build_promotion_tool/helper/git_helper.rb, line 3
def fetch_tags
  `git fetch --tags`
end
get_tags_for_this_commit() click to toggle source
# File lib/build_promotion_tool/helper/git_helper.rb, line 11
def get_tags_for_this_commit
  `git tag --points-at HEAD`.lines
end
push_tag_to_remote(tag) click to toggle source
# File lib/build_promotion_tool/helper/git_helper.rb, line 19
def push_tag_to_remote(tag)
  `git push origin #{tag}`
end