Sha256: c01bdfa50d87bf7b8ea617087f714080822aa7fb2826e822909764ee125f11ef

Contents?: true

Size: 1.25 KB

Versions: 7

Compression:

Stored size: 1.25 KB

Contents

#!/bin/sh

for cache_group in "$@"
do
  case $cache_group in

  rails)
    cache restore "nvm-$SEMAPHORE_GIT_BRANCH-$(checksum .nvmrc),nvm-$SEMAPHORE_GIT_BRANCH,nvm-develop"
    cache restore "gems-$SEMAPHORE_GIT_BRANCH-$(checksum .ruby-version)-$(checksum Gemfile.lock),gems-develop-$(checksum .ruby-version)-$(checksum Gemfile.lock),gems-develop-$(checksum .ruby-version)"
    cache restore "yarn-cache-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),yarn-cache-$SEMAPHORE_GIT_BRANCH,yarn-cache-develop"
    cache restore "node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules-develop"
    ;;

  python)
    cache restore "requirements-$SEMAPHORE_GIT_BRANCH-$(checksum requirements.txt),requirements-$SEMAPHORE_GIT_BRANCH,requirements-develop"
    ;;

  assets)
    cache restore "packs-$SEMAPHORE_GIT_BRANCH,packs-develop"
    cache restore "packstest-$SEMAPHORE_GIT_BRANCH,packstest-develop"
    cache restore "assets-$SEMAPHORE_GIT_BRANCH,assets-develop"
    cache restore "sprocketscache-$SEMAPHORE_GIT_BRANCH,sprocketscache-develop"
    cache restore "webpackercache-$SEMAPHORE_GIT_BRANCH,webpackercache-develop"
    ;;

  *)
    echo "Invalid argument: Cache group $cache_group not found."
    exit 1
    ;;
  esac
done

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
renuo-cli-4.5.2 lib/renuo/cli/app/templates/semaphore/bin/cache_restore.erb
renuo-cli-4.5.1 lib/renuo/cli/app/templates/semaphore/bin/cache_restore.erb
renuo-cli-4.5.0 lib/renuo/cli/app/templates/semaphore/bin/cache_restore.erb
renuo-cli-4.3.0 lib/renuo/cli/app/templates/semaphore/bin/cache_restore.erb
renuo-cli-4.2.1 lib/renuo/cli/app/templates/semaphore/bin/cache_restore.erb
renuo-cli-4.2.0 lib/renuo/cli/app/templates/semaphore/bin/cache_restore.erb
renuo-cli-3.1.7 lib/renuo/cli/app/templates/semaphore/bin/cache_restore.erb