1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const tslib_1 = require("tslib");
|
4 | const base_command_1 = require("../base-command");
|
5 | const decorators_1 = require("../utils/decorators");
|
6 | const cli_ux_1 = require("cli-ux");
|
7 | const push_1 = require("./push");
|
8 | class Deploy extends base_command_1.default {
|
9 | async run() {
|
10 | this.warn('This command is deprecated and will be removed soon.');
|
11 | this.warn(this.colors.bold('Please use this command instead: ') + this.colors.bold(this.colors.yellow('bearer push')));
|
12 | try {
|
13 | await push_1.default.run(['--path', this.locator.integrationRoot]);
|
14 | cli_ux_1.default.action.stop();
|
15 | }
|
16 | catch (e) {
|
17 | this.error(e);
|
18 | }
|
19 | }
|
20 | }
|
21 | Deploy.description = '[DEPRECATED] Deploys integration';
|
22 | Deploy.hidden = true;
|
23 | Deploy.flags = Object.assign({}, base_command_1.default.flags);
|
24 | Deploy.args = [];
|
25 | tslib_1.__decorate([
|
26 | decorators_1.RequireIntegrationFolder()
|
27 | ], Deploy.prototype, "run", null);
|
28 | exports.default = Deploy;
|