class LetItCrash::Matchers::Jenkins
Public Instance Methods
branch()
click to toggle source
# File lib/letitcrash/matchers/jenkins.rb, line 11 def branch environment['ghprbSourceBranch'] || environment['GIT_BRANCH'] end
matches?()
click to toggle source
This method performs a :reek:NilCheck.
# File lib/letitcrash/matchers/jenkins.rb, line 7 def matches? !environment['JENKINS_URL'].nil? end
sha()
click to toggle source
# File lib/letitcrash/matchers/jenkins.rb, line 15 def sha environment['ghprbActualCommit'] || environment['GIT_COMMIT'] end