This commit is contained in:
Caleb Gosiak 2021-10-04 10:00:10 -05:00
parent 7b3fb19462
commit 2e9ce0166f
5 changed files with 44 additions and 24 deletions

21
dist/restore/index.js vendored
View file

@ -43288,13 +43288,20 @@ const path = __importStar(__webpack_require__(5622));
const actionUtils_1 = __webpack_require__(443);
class CacheService {
constructor(accessKeyId, secretAccessKey, region, bucket) {
this._client = new aws_sdk_1.S3({
region: region,
credentials: {
accessKeyId: accessKeyId,
secretAccessKey: secretAccessKey
}
});
if (accessKeyId && secretAccessKey) {
this._client = new aws_sdk_1.S3({
region: region,
credentials: {
accessKeyId: accessKeyId,
secretAccessKey: secretAccessKey
}
});
}
else {
this._client = new aws_sdk_1.S3({
region: region
});
}
this._bucket = bucket;
}
restoreCache(paths, primaryKey, restoreKeys) {