g2-ops-config
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -45,7 +45,6 @@ 'use strict'; | ||
var application = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : configParams.application; | ||
return console.log(configParams) || 'http://' + configParams.auth.user + ':' + configParams.auth.pass + '@' + configParams.endpoint + '/' + application + '/' + profile; | ||
return 'http://' + configParams.auth.user + ':' + configParams.auth.pass + '@' + configParams.endpoint + '/' + application + '/' + profile; | ||
}; | ||
function getYamlPromise(profile, application) { | ||
console.log(configFileURL(profile, application)); | ||
return _axios2.default.get(configFileURL(profile, application)).then(function (response) { | ||
@@ -52,0 +51,0 @@ return response.data; |
{ | ||
"name": "g2-ops-config", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "To fetch and maintain cloud configs for difference projects", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -33,7 +33,5 @@ // @flow | ||
export const configFileURL = (profile: string, application?: string = configParams.application): string => | ||
console.log(configParams) || | ||
`http://${configParams.auth.user}:${configParams.auth.pass}@${configParams.endpoint}/${application}/${profile}` | ||
function getYamlPromise(profile, application) { | ||
console.log(configFileURL(profile, application)) | ||
return axios.get(configFileURL(profile, application)).then((response) => response.data) | ||
@@ -40,0 +38,0 @@ } |
26233
685