module Hatchet

Constants

APP_PREFIX
RETRIES
Runner
VERSION

Public Class Methods

git_branch() click to toggle source
# File lib/hatchet.rb, line 51
def self.git_branch
  branch = DefaultCIBranch.new.call

  if branch
    branch
  else
    out = `git rev-parse --abbrev-ref HEAD`.strip
    raise "Attempting to find current branch name. Error: Cannot describe git: #{out}" unless $?.success?
    out
  end
end