1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Shorter server command names

This commit is contained in:
Chocobozzz 2021-07-16 09:04:35 +02:00
parent d23dd9fbfc
commit 89d241a79c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
155 changed files with 2508 additions and 2508 deletions

View file

@ -37,7 +37,7 @@ export class ServersCommand extends AbstractCommand {
if (isGithubCI()) {
await ensureDir('artifacts')
const origin = this.server.serversCommand.buildDirectory('logs/peertube.log')
const origin = this.server.servers.buildDirectory('logs/peertube.log')
const destname = `peertube-${this.server.internalServerNumber}.log`
console.log('Saving logs %s.', destname)
@ -56,7 +56,7 @@ export class ServersCommand extends AbstractCommand {
}
async waitUntilLog (str: string, count = 1, strictCount = true) {
const logfile = this.server.serversCommand.buildDirectory('logs/peertube.log')
const logfile = this.server.servers.buildDirectory('logs/peertube.log')
while (true) {
const buf = await readFile(logfile)
@ -74,7 +74,7 @@ export class ServersCommand extends AbstractCommand {
}
async getServerFileSize (subPath: string) {
const path = this.server.serversCommand.buildDirectory(subPath)
const path = this.server.servers.buildDirectory(subPath)
return getFileSize(path)
}