Module: Hatchet

Defined in:
lib/hatchet.rb,
lib/hatchet.rb,
lib/hatchet/app.rb,
lib/hatchet/config.rb,
lib/hatchet/reaper.rb,
lib/hatchet/git_app.rb,
lib/hatchet/version.rb,
lib/hatchet/test_run.rb,
lib/hatchet/anvil_app.rb

Defined Under Namespace

Classes: AnvilApp, App, BadRepoName, Config, FailedTestError, GitApp, MissingConfig, ParserError, Reaper, TestRun

Constant Summary collapse

RETRIES =
Integer(ENV['HATCHET_RETRIES']   || 1)
Runner =
Hatchet::GitApp
VERSION =
"2.0.0"

Class Method Summary collapse

Class Method Details

.git_branchObject



29
30
31
32
33
34
# File 'lib/hatchet.rb', line 29

def self.git_branch
  return ENV['TRAVIS_BRANCH'] if ENV['TRAVIS_BRANCH']
  out = `git describe --contains --all HEAD`.strip
  raise "Attempting to find current branch name. Error: Cannot describe git: #{out}" unless $?.success?
  out
end