Class: GitMaintain::TravisChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/travis.rb

Constant Summary collapse

TRAVIS_URL =
'https://api.travis-ci.org/'

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repo) ⇒ 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



98
99
100
# File 'lib/travis.rb', line 98

def checkStableState(sha1)
    return checkState(sha1, getBrStableJson())
end

#checkValidState(sha1) ⇒ Object



88
89
90
# File 'lib/travis.rb', line 88

def checkValidState(sha1)
    return checkState(sha1, getBrValidJson())
end

#getStableLog(sha1) ⇒ Object



101
102
103
# File 'lib/travis.rb', line 101

def getStableLog(sha1)
    return getLog(sha1, getBrStableJson())
end

#getStableState(sha1) ⇒ Object



95
96
97
# File 'lib/travis.rb', line 95

def getStableState(sha1)
    return getState(sha1, getBrStableJson())
end

#getValidLog(sha1) ⇒ Object



91
92
93
# File 'lib/travis.rb', line 91

def getValidLog(sha1)
    return getLog(sha1, getBrValidJson())
end

#getValidState(sha1) ⇒ Object



85
86
87
# File 'lib/travis.rb', line 85

def getValidState(sha1)
    return getState(sha1, getBrValidJson())
end