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