Class: Herkko::Travis

Inherits:
Object
  • Object
show all
Defined in:
lib/herkko/travis.rb

Overview

Checks status of CI build from Travis.

Instance Method Summary collapse

Instance Method Details

#status_for(branch) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/herkko/travis.rb', line 6

def status_for(branch)
  if travis_cli_installed?
    status = fetch_status(branch)
    status_to_code(status)
  else
    Herkko.info "Travis CLI has not been installed, run: gem install travis"
    :unknown
  end
end