"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const version_1 = require("../upgrade/version");
const jar_1 = require("./jar");
const Command = require('../ember-cli/lib/models/command');
// defaults for BuildOptions
exports.baseDeployCommandOptions = jar_1.baseJarCommandOptions.concat([
    { name: 'host', type: String, default: '127.0.0.1', aliases: ['h'] },
    { name: 'port', type: Number, default: 11311, aliases: ['p'] }
]);
const DeployCommand = Command.extend({
    name: 'deploy',
    description: 'Deploy a portlet jar to Liferay DXP',
    aliases: ['de'],
    availableOptions: exports.baseDeployCommandOptions.concat([]),
    run: function (commandOptions) {
        const project = this.project;
        // Check angular version.
        version_1.Version.assertAngularVersionIs2_3_1OrHigher(project.root);
        const DeployTask = require('../tasks/speedray/deploy').default;
        const deployTask = new DeployTask({
            cliProject: project,
            ui: this.ui,
        });
        return deployTask.run(commandOptions);
    }
});
exports.default = DeployCommand;
//# sourceMappingURL=/home/ddavis/Projects/xtivia/speedray/speedray-cli/commands/deploy.js.map