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
- APP_PREFIX =
(ENV['HATCHET_APP_PREFIX'] || "hatchet-t-")
- RETRIES =
Integer(ENV['HATCHET_RETRIES'] || 1)
- Runner =
Hatchet::GitApp
- VERSION =
"4.0.12"
Class Method Summary collapse
Class Method Details
.git_branch ⇒ Object
28 29 30 31 32 33 |
# File 'lib/hatchet.rb', line 28 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 |