Class: LetItCrash::Matchers::Codeship

Inherits:
Base
  • Object
show all
Defined in:
lib/letitcrash/matchers/codeship.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from LetItCrash::Matchers::Base

Instance Method Details

#branchObject



10
11
12
# File 'lib/letitcrash/matchers/codeship.rb', line 10

def branch
  environment['CI_BRANCH']
end

#matches?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/letitcrash/matchers/codeship.rb', line 6

def matches?
  ci? && environment['CI_NAME'] == 'codeship'
end

#shaObject



14
15
16
# File 'lib/letitcrash/matchers/codeship.rb', line 14

def sha
  environment['CI_COMMIT_ID']
end