Class: LetItCrash::Matchers::AppVeyor

Inherits:
Base
  • Object
show all
Defined in:
lib/letitcrash/matchers/app_veyor.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/app_veyor.rb', line 10

def branch
  environment['APPVEYOR_REPO_BRANCH']
end

#matches?Boolean

Returns:

  • (Boolean)


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

def matches?
  ci? && environment['APPVEYOR'] == 'true'
end

#shaObject



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

def sha
  environment['APPVEYOR_REPO_COMMIT']
end