class LetItCrash::Matchers::GitLabCI
Public Instance Methods
branch()
click to toggle source
# File lib/letitcrash/matchers/gitlab_ci.rb, line 11 def branch environment['CI_BUILD_REF_NAME'] || environment['CI_COMMIT_REF_NAME'] end
matches?()
click to toggle source
This method performs a :reek:NilCheck.
# File lib/letitcrash/matchers/gitlab_ci.rb, line 7 def matches? !environment['GITLAB_CI'].nil? end
sha()
click to toggle source
# File lib/letitcrash/matchers/gitlab_ci.rb, line 15 def sha environment['CI_BUILD_REF'] || environment['CI_COMMIT_SHA'] end