Class: LetItCrash::Matchers::Codefresh
- Defined in:
- lib/letitcrash/matchers/codefresh.rb
Instance Method Summary collapse
- #branch ⇒ Object
-
#matches? ⇒ Boolean
This method performs a :reek:NilCheck.
- #sha ⇒ Object
Methods inherited from Base
Constructor Details
This class inherits a constructor from LetItCrash::Matchers::Base
Instance Method Details
#branch ⇒ Object
11 12 13 |
# File 'lib/letitcrash/matchers/codefresh.rb', line 11 def branch environment['CF_BRANCH'] end |
#matches? ⇒ Boolean
This method performs a :reek:NilCheck.
7 8 9 |
# File 'lib/letitcrash/matchers/codefresh.rb', line 7 def matches? !branch.nil? end |
#sha ⇒ Object
15 16 17 |
# File 'lib/letitcrash/matchers/codefresh.rb', line 15 def sha environment['CF_REVISION'] end |