Setup cloud runner state properly within RemoteClientCli
parent
b9cd4ca05a
commit
443a0403d5
|
|
@ -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();
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue