Fix remote and S3 detection

This commit is contained in:
2020-12-12 12:22:06 -06:00
parent 617f020ad0
commit 1fedb94157
6 changed files with 61 additions and 12 deletions

View File

@@ -213,6 +213,10 @@ const _getDataDirectory = () => {
return _resolvePath(Constants.DATA_LOCATIONS[os.platform()]);
};
const _getRepertoryDirectory = () => {
return _resolvePath(Constants.REPERTORY_LOCATIONS[os.platform()]);
};
const _getDefaultRepertoryArgs = (provider, remote, s3) => {
const providerLower = provider.toLowerCase();
const args = [];
@@ -728,6 +732,8 @@ module.exports.getConfigTemplate = (version, provider, remote, s3) => {
module.exports.getDataDirectory = _getDataDirectory;
module.exports.getRepertoryDirectory = _getRepertoryDirectory;
module.exports.getMissingDependencies = dependencies => {
return new Promise((resolve, reject) => {
if (!dependencies) {