Updated method names.

This commit is contained in:
Cyrille 2019-05-09 22:18:59 +01:00
parent 8a1048c7a2
commit 372e7bcbdd
1 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ const s3 = new AWS.S3({ apiVersion: "2006-03-01" });
const pathHelper = require("../pathHelper");
const fileNames = require("../fileNames");
setObjects = (opts, options) => {
const getObjects = (opts, options) => {
return [
{
Key: pathHelper.certificatesPath(options, opts.subject, fileNames.cert)
@ -24,7 +24,7 @@ setObjects = (opts, options) => {
];
};
setPromises = (objects, options) => {
const getPromises = (objects, options) => {
let promises = [];
for (let i = 0; i < objects.length; i++) {
@ -44,8 +44,8 @@ setPromises = (objects, options) => {
module.exports.set = (opts, options) => {
console.log("certificates.set for ", opts.subject);
const objects = setObjects(opts, options);
const promises = setPromises(objects, options);
const objects = getObjects(opts, options);
const promises = getPromises(objects, options);
return Promise.all(promises).then((values) => {
return null;