public abstract class GitHubSource extends Object implements ExternalBinarySource
Constructor and Description |
---|
GitHubSource(String organization,
String project) |
Modifier and Type | Method and Description |
---|---|
ExternalBinary |
getBinaryRelease() |
protected abstract String |
getExpectedFileNameRegex()
It is expected that this abstract method should return a regex that represents an expected file name
of the release asset.
|
ExternalBinary |
getLatestRelease()
Retrieves information about the latest release of binary and returns an instance of
ExternalBinary that
represents the latest release. |
ExternalBinary |
getReleaseForVersion(String version)
Retrieves information about a binary release with the desired version and returns an instance of
ExternalBinary that represents the found release. |
public ExternalBinary getLatestRelease() throws Exception
ExternalBinarySource
ExternalBinary
that
represents the latest release.getLatestRelease
in interface ExternalBinarySource
ExternalBinary
that contains information about the latest release of the binary.Exception
- If anything bad happenspublic ExternalBinary getReleaseForVersion(String version) throws Exception
ExternalBinarySource
ExternalBinary
that represents the found release.getReleaseForVersion
in interface ExternalBinarySource
version
- A version of a binary release that should be retrieved.ExternalBinary
that contains information about a binary release with the desired version.Exception
protected abstract String getExpectedFileNameRegex()
public ExternalBinary getBinaryRelease()
Copyright © 2017 JBoss by Red Hat. All rights reserved.