Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function restoreBundleFromCache(rubyVersion) {
core.startGroup(`Restore Bundle from Cache`)
const key = bundleCacheKey(rubyVersion)
core.info(`restore using ${key}`)
await cache.restoreCache(bundleCachePaths(rubyVersion), key, [key])
core.endGroup()
}
async function restoreRubyFromCache(rubyVersion) {
core.startGroup(`Restore Ruby from Cache`)
const key = rubyCacheKey(rubyVersion)
await cache.restoreCache(rubyCachePaths(rubyVersion), key, [key])
core.endGroup()
}
async function saveRubyToCache(rubyVersion) {
core.startGroup(`Save Ruby to Cache`)
const key = rubyCacheKey(rubyVersion)
await cache.saveCache(rubyCachePaths(rubyVersion), key)
core.endGroup()
}
async function saveBundleToCache(rubyVersion) {
core.startGroup(`Save Bundle to Cache`)
const key = bundleCacheKey(rubyVersion)
await cache.saveCache(bundleCachePaths(rubyVersion), key)
core.endGroup()
}