Class: LetItCrash::Matchers::SnapCI
- Inherits:
-
Base
- Object
- Base
- LetItCrash::Matchers::SnapCI
show all
- Defined in:
- lib/letitcrash/matchers/snap_ci.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#branch ⇒ Object
10
11
12
|
# File 'lib/letitcrash/matchers/snap_ci.rb', line 10
def branch
environment['SNAP_BRANCH'] || environment['SNAP_UPSTREAM_BRANCH']
end
|
#matches? ⇒ Boolean
6
7
8
|
# File 'lib/letitcrash/matchers/snap_ci.rb', line 6
def matches?
ci? && environment['SNAP_CI'] == 'true'
end
|
#sha ⇒ Object
14
15
16
|
# File 'lib/letitcrash/matchers/snap_ci.rb', line 14
def sha
environment['SNAP_COMMIT'] || environment['SNAP_UPSTREAM_COMMIT']
end
|