Skip to content

Commit

Permalink
* Added governace env check
Browse files Browse the repository at this point in the history
  • Loading branch information
sivakumar414ram committed Dec 30, 2020
1 parent 0064e0b commit 1d317a5
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 34 deletions.
31 changes: 0 additions & 31 deletions lib/cli/scripts/plugins/check-plug-in-env.ts

This file was deleted.

36 changes: 36 additions & 0 deletions lib/cli/scripts/plugins/check-plugin-env.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { ProcessServicePlugin } from './ps-plugin';
import { PluginTarget } from './plugins-model';
import { CheckEnv } from './check-env';
import program = require('commander');

let pluginEnv;

async function main() {
program
.version('0.1.0')
.option('--host [type]', 'Remote environment host')
.option('--pluginName [type]', 'pluginName ')
.option('-p, --password [type]', 'password ')
.option('-u, --username [type]', 'username ')
.parse(process.argv);

pluginEnv = new CheckEnv(program.host, program.username, program.password);
await pluginEnv.checkEnv();

if (program.pluginName === PluginTarget.processService) {
checkProcessServicesPlugin();
}
}

async function checkProcessServicesPlugin() {
const processServicePlugin = new ProcessServicePlugin(
{
host: program.host,
name: PluginTarget.processService
},
pluginEnv.alfrescoJsApi
);
await processServicePlugin.checkProcessServicesPlugin();
}

main();
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { PlugInInterface } from './plugins-targets';
import { logger } from './../logger';
import { PlugInInterface } from './plugins-model';
import { logger } from '../logger';

export class ProcessServicePlugin {
processServicePluginName = 'processService';
alfrescoJsApi: any;
plugInInfo: PlugInInterface;

Expand Down

0 comments on commit 1d317a5

Please sign in to comment.