(obj, keys)
| 123 | } |
| 124 | |
| 125 | function checkRequiredKeys(obj, keys) { |
| 126 | keys.forEach(function(key){ |
| 127 | if (!obj[key] || !obj[key].length) { |
| 128 | console.error(`ERROR: The credential config did not contain a valid value for: ${key}`); |
| 129 | process.exit(1); |
| 130 | } |
| 131 | }); |
| 132 | } |
| 133 | |
| 134 | if (config.credentials.aws.credential_file && (!settings.cloud || (settings.cloud == 'aws'))) { |
| 135 | settings.cloud = 'aws'; |