Skip to content

Commit 470eb1c

Browse files
Cr 6059 fix array (#762)
* fix array, require order * bump version
1 parent 4e9b9a2 commit 470eb1c

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

lib/interface/cli/commands/hybrid/helper.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
const { prettyError } = require('../../../../logic/cli-config/errors/helpers');
1+
const _ = require('lodash');
22
const colors = require('colors');
3-
const { to } = require('./../../../../logic/cli-config/errors/awaitTo');
3+
const cliProgress = require('cli-progress');
4+
const figlet = require('figlet');
5+
const path = require('path');
6+
const { homedir } = require('os');
7+
const Promise = require('bluebird');
8+
const YAML = require('yaml');
9+
const fs = require('fs');
10+
11+
const { prettyError } = require('../../../../logic/cli-config/errors/helpers');
12+
const { to } = require('../../../../logic/cli-config/errors/awaitTo');
413
const sdk = require('../../../../logic/sdk');
5-
const _ = require('lodash');
614
const { status: STATUSES } = require('./installation-process');
715
const pipelinesRunCmd = require('../pipeline/run.cmd');
816
const { getAllNamespaces } = require('../../helpers/kubernetes');
917
const { followLogs } = require('../../helpers/logs');
1018
const ProgressEvents = require('../../helpers/progressEvents');
11-
const cliProgress = require('cli-progress');
12-
const figlet = require('figlet');
13-
const path = require('path');
14-
const { homedir } = require('os');
1519
const {
1620
components, Runner, Downloader, CommonProgressFormat,
1721
CODEFRESH_PATH,
18-
} = require('./../../../../binary');
22+
} = require('../../../../binary');
1923
const { pathExists } = require('../../helpers/general');
20-
const Promise = require('bluebird');
21-
const YAML = require('yaml');
22-
const fs = require('fs');
2324

2425
const INSTALLATION_DEFAULTS = {
2526
NAMESPACE: 'codefresh',
@@ -421,7 +422,8 @@ async function downloadHybridComponents(location, bypassDownload = false) {
421422
}
422423

423424
/* eslint-disable no-restricted-syntax, no-await-in-loop */
424-
async function downloadComponents(location = CODEFRESH_PATH, componentsArray = []) {
425+
async function downloadComponents(location = CODEFRESH_PATH, componentsArg = []) {
426+
const componentsArray = _.isArray(componentsArg) ? componentsArg : [componentsArg];
425427
for (const component of componentsArray) {
426428
switch (component) {
427429
case 'stevedore':

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.80.3",
3+
"version": "0.80.4",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)