Skip to content

Commit

Permalink
add filter
Browse files Browse the repository at this point in the history
  • Loading branch information
playground committed Nov 30, 2021
1 parent b1396cd commit fd9eec1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions build/commands/deploy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/commands/deploy.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export const handler = (argv: Arguments<Options>): void => {
const p = pattern || '';
const configPath = config_path || utils.getHznConfig();
const skipInitialize = ['uninstallHorizon'];
const justRun = ['buildMMSImage', 'buildServiceImage', 'checkConfigState', 'createHznKey', 'dockerImageExists', 'getDeviceArch', 'listDeploymentPolicy', 'listNode', 'listNodePattern', 'listObject', 'listPattern', 'listService', 'removeOrg', 'showHznInfo', 'uninstallHorizon', 'unregisterAgent', 'updateHznInfo'];
const promptForUpdate = ['setup', 'publishService', 'publishPatterrn', 'publishMMSService', 'publishMMSPattern', 'registerAgent', 'publishMMSObject', 'unregisterAgent']
const justRun = ['buildMMSImage', 'buildServiceImage', 'checkConfigState', 'createHznKey', 'dockerImageExists', 'getDeviceArch', 'listDeploymentPolicy', 'listNode', 'listNodePattern', 'listObject', 'listPattern', 'listService', 'removeOrg', 'showHznInfo', 'uninstallHorizon', 'updateHznInfo'];
const promptForUpdate = ['setup', 'test', 'publishService', 'publishPatterrn', 'publishMMSService', 'publishMMSPattern', 'registerAgent', 'publishMMSObject', 'unregisterAgent']
console.log('$$$ ', action, env, configPath, n);

const proceed = () => {
Expand Down Expand Up @@ -90,7 +90,8 @@ export const handler = (argv: Arguments<Options>): void => {
.subscribe({
complete: () => {
if(justRun.indexOf(action) >= 0) {
utils.removeOrg(env)
const hzn = new Hzn(env, configPath, n, objType, objId, obj, p);
hzn[action](env)
.subscribe({
complete: () => process.exit(0),
error: (err) => {
Expand Down

0 comments on commit fd9eec1

Please sign in to comment.