mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-11 18:57:30 +03:00
Create SyncAll.java
Выплёвываю как есть. Регистрация где - я хз. Дальше сами.
This commit is contained in:
parent
ea7d50a8bc
commit
3a265cc224
1 changed files with 32 additions and 0 deletions
|
@ -0,0 +1,32 @@
|
||||||
|
package pro.gravit.launchserver.command.hash;
|
||||||
|
|
||||||
|
import pro.gravit.launchserver.LaunchServer;
|
||||||
|
import pro.gravit.launchserver.command.Command;
|
||||||
|
import pro.gravit.utils.helper.LogHelper;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
public final class SyncAll extends Command {
|
||||||
|
public SyncAll(LaunchServer server) {
|
||||||
|
super(server);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getArgsDescription() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getUsageDescription() {
|
||||||
|
return "Resync profiles & updates dirs";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void invoke(String... args) throws IOException {
|
||||||
|
server.syncProfilesDir();
|
||||||
|
LogHelper.subInfo("Profiles successfully resynced");
|
||||||
|
|
||||||
|
server.syncUpdatesDir(null);
|
||||||
|
LogHelper.subInfo("Updates dir successfully resynced");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue