UNPKG

1.05 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const tslib_1 = require("tslib");
4const base_command_1 = require("../base-command");
5const decorators_1 = require("../utils/decorators");
6const cli_ux_1 = require("cli-ux");
7const push_1 = require("./push");
8class 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}
21Deploy.description = '[DEPRECATED] Deploys integration';
22Deploy.hidden = true;
23Deploy.flags = Object.assign({}, base_command_1.default.flags);
24Deploy.args = [];
25tslib_1.__decorate([
26 decorators_1.RequireIntegrationFolder()
27], Deploy.prototype, "run", null);
28exports.default = Deploy;