Class RepositoryUpdater
- java.lang.Object
-
- de.dytanic.cloudnet.launcher.version.update.RepositoryUpdater
-
- All Implemented Interfaces:
Updater,VersionInfo
public final class RepositoryUpdater extends java.lang.Object implements Updater
-
-
Constructor Summary
Constructors Constructor Description RepositoryUpdater(java.lang.String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCurrentVersion()java.lang.StringgetGitHubRepository()longgetReleaseTimestamp()java.lang.StringgetRepositoryVersion()java.nio.file.PathgetTargetDirectory()booleaninit(java.nio.file.Path versionDirectory, java.lang.String githubRepository)booleaninstallFile(java.lang.String name, java.nio.file.Path path)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.dytanic.cloudnet.launcher.version.update.Updater
installUpdate
-
Methods inherited from interface de.dytanic.cloudnet.launcher.version.VersionInfo
getFullVersion
-
-
-
-
Method Detail
-
init
public boolean init(java.nio.file.Path versionDirectory, java.lang.String githubRepository)
-
installFile
public boolean installFile(java.lang.String name, java.nio.file.Path path)- Specified by:
installFilein interfaceUpdater
-
getRepositoryVersion
public java.lang.String getRepositoryVersion()
- Specified by:
getRepositoryVersionin interfaceVersionInfo
-
getCurrentVersion
public java.lang.String getCurrentVersion()
- Specified by:
getCurrentVersionin interfaceVersionInfo
-
getGitHubRepository
public java.lang.String getGitHubRepository()
- Specified by:
getGitHubRepositoryin interfaceVersionInfo
-
getReleaseTimestamp
public long getReleaseTimestamp()
- Specified by:
getReleaseTimestampin interfaceVersionInfo
-
getTargetDirectory
public java.nio.file.Path getTargetDirectory()
- Specified by:
getTargetDirectoryin interfaceVersionInfo
-
-