Setup cloud runner state properly within RemoteClientCli

pull/310/head
Frostebite 2021-12-21 23:15:00 +00:00
parent b9cd4ca05a
commit 443a0403d5
3 changed files with 9 additions and 1 deletions

4
dist/index.js vendored
View File

@ -1965,10 +1965,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.RemoteClientCli = void 0; exports.RemoteClientCli = void 0;
const __1 = __webpack_require__(41359);
const cloud_runner_state_1 = __webpack_require__(70912);
const download_repository_1 = __webpack_require__(20477); const download_repository_1 = __webpack_require__(20477);
class RemoteClientCli { class RemoteClientCli {
static RunRemoteClient(options) { static RunRemoteClient(options) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const buildParameter = yield __1.BuildParameters.create();
cloud_runner_state_1.CloudRunnerState.setup(buildParameter);
switch (options.remoteClientState) { switch (options.remoteClientState) {
default: default:
yield download_repository_1.DownloadRepository.run(); yield download_repository_1.DownloadRepository.run();

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,11 @@
import { BuildParameters } from '../..';
import { CloudRunnerState } from '../state/cloud-runner-state';
import { DownloadRepository } from './remote-steps/download-repository'; import { DownloadRepository } from './remote-steps/download-repository';
export class RemoteClientCli { export class RemoteClientCli {
static async RunRemoteClient(options) { static async RunRemoteClient(options) {
const buildParameter = await BuildParameters.create();
CloudRunnerState.setup(buildParameter);
switch (options.remoteClientState) { switch (options.remoteClientState) {
default: default:
await DownloadRepository.run(); await DownloadRepository.run();