Skip to content

Commit

Permalink
Fixes for linting and testing, ensuring passing
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHeckel committed Jan 3, 2018
1 parent 077ff18 commit 4df41df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ node_modules
npm*
build
.DS_Store
.nvmrc
7 changes: 6 additions & 1 deletion src/api/args.js
Expand Up @@ -15,9 +15,13 @@ export const getEnvironmentVariables = () => {
const argsArray = args instanceof Array ? args : [args];
return argsArray.map((e) => {
const envArray = e.split('=');
let val = envArray[1];
if (envArray.length > 2) {
val = ['"', envArray.slice(1, envArray.length).join('='), '"'].join('');
}
return {
name: envArray[0],
value: envArray.length > 2 ? ["\"", envArray.slice(1, envArray.length).join("="), "\""].join("") : envArray[1],
value: val,
};
});
};
Expand Down Expand Up @@ -48,6 +52,7 @@ export const getRemainingVariables = (environmentVariables = getEnvironmentVaria
// get remaining options that user has passsed to meteor-now
export const getRemainingOptions = () => {
const args = getArgs();
console.log('args are ', args);
return (
Object.entries(args)
// filter out specified list of options
Expand Down
2 changes: 1 addition & 1 deletion src/api/now.js
Expand Up @@ -69,6 +69,6 @@ export const deploy = async () => {
logger.succeed();
}
} catch (e) {
logger.error('Something went wrong with now: ' + JSON.stringify(e));
logger.error('Something went wrong with now', e);
}
};

0 comments on commit 4df41df

Please sign in to comment.