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