Class: GitMaintain::TravisChecker
- Inherits:
-
Object
- Object
- GitMaintain::TravisChecker
- Defined in:
- lib/travis.rb
Constant Summary collapse
- TRAVIS_URL =
'https://api.travis-ci.org/'
Class Method Summary collapse
Instance Method Summary collapse
- #checkStableState(sha1) ⇒ Object
- #checkValidState(sha1) ⇒ Object
- #emptyCache ⇒ Object
- #getStableLog(sha1) ⇒ Object
- #getStableState(sha1) ⇒ Object
- #getStableTS(sha1) ⇒ Object
- #getValidLog(sha1) ⇒ Object
- #getValidState(sha1) ⇒ Object
- #getValidTS(sha1) ⇒ Object
-
#initialize(repo) ⇒ TravisChecker
constructor
A new instance of TravisChecker.
Constructor Details
#initialize(repo) ⇒ TravisChecker
Returns a new instance of TravisChecker.
10 11 12 13 14 15 |
# File 'lib/travis.rb', line 10 def initialize(repo) GitMaintain::checkDirectConstructor(self.class) @repo = repo @cachedJson={} end |
Class Method Details
.load(repo) ⇒ Object
5 6 7 8 |
# File 'lib/travis.rb', line 5 def self.load(repo) repo_name = File.basename(repo.path) return GitMaintain::loadClass(TravisChecker, repo_name, repo) end |
Instance Method Details
#checkStableState(sha1) ⇒ Object
110 111 112 |
# File 'lib/travis.rb', line 110 def checkStableState(sha1) return checkState(sha1, getBrStableJson()) end |
#checkValidState(sha1) ⇒ Object
97 98 99 |
# File 'lib/travis.rb', line 97 def checkValidState(sha1) return checkState(sha1, getBrValidJson()) end |
#emptyCache ⇒ Object
119 120 121 |
# File 'lib/travis.rb', line 119 def emptyCache() @cachedJson={} end |
#getStableLog(sha1) ⇒ Object
113 114 115 |
# File 'lib/travis.rb', line 113 def getStableLog(sha1) return getLog(sha1, getBrStableJson()) end |
#getStableState(sha1) ⇒ Object
107 108 109 |
# File 'lib/travis.rb', line 107 def getStableState(sha1) return getState(sha1, getBrStableJson()) end |
#getStableTS(sha1) ⇒ Object
116 117 118 |
# File 'lib/travis.rb', line 116 def getStableTS(sha1) return getTS(sha1, getBrStableJson()) end |
#getValidLog(sha1) ⇒ Object
100 101 102 |
# File 'lib/travis.rb', line 100 def getValidLog(sha1) return getLog(sha1, getBrValidJson()) end |
#getValidState(sha1) ⇒ Object
94 95 96 |
# File 'lib/travis.rb', line 94 def getValidState(sha1) return getState(sha1, getBrValidJson()) end |
#getValidTS(sha1) ⇒ Object
103 104 105 |
# File 'lib/travis.rb', line 103 def getValidTS(sha1) return getTS(sha1, getBrValidJson()) end |