class LetItCrash::Matchers::SnapCI

Public Instance Methods

branch() click to toggle source
# File lib/letitcrash/matchers/snap_ci.rb, line 10
def branch
  environment['SNAP_BRANCH'] || environment['SNAP_UPSTREAM_BRANCH']
end
matches?() click to toggle source
# File lib/letitcrash/matchers/snap_ci.rb, line 6
def matches?
  ci? && environment['SNAP_CI'] == 'true'
end
sha() click to toggle source
# File lib/letitcrash/matchers/snap_ci.rb, line 14
def sha
  environment['SNAP_COMMIT'] || environment['SNAP_UPSTREAM_COMMIT']
end