Sha256: ae82d7e4834341fbf247222ccaefb883082dd20b4f645ea80255f4c222fe5f38

Contents?: true

Size: 688 Bytes

Versions: 19

Compression:

Stored size: 688 Bytes

Contents

#!/bin/bash
set -euo pipefail
IFS=$'\n\t'

remove_bundler_cache() {
  local pwd=$PWD
  local cache="$pwd/vendor/cache"

  rm -rf $cache
}

# We may need something like this in future if we use github checkouts of gems
# (see `uninstall_hanami_gems()` in hanami/hanami's teardown script)
#
# uninstall_gems_from_checkouts() { }

bundle_install() {
  bundle install > /dev/null
}

advertise_start() {
  echo -en "Cleaning up.."
}

advertise_end() {
  echo " done"
}

main() {
  local ci=${CI:-false}

  if [ "$ci" = true ] ; then
    echo "Running on CI, skipping cleanup"
  else
    advertise_start &&
      remove_bundler_cache &&
      bundle_install &&
      advertise_end
  fi
}

main

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
dry-web-web_pipe-0.2.0 script/teardown
dry-web-roda-0.13.1 script/teardown
dry-web-roda-0.13.0 script/teardown
dry-web-web_pipe-0.1.0 script/teardown
dry-web-roda-0.12.0 script/teardown
dry-web-roda-0.11.0 script/teardown
dry-web-roda-0.10.0 script/teardown
dry-web-roda-0.9.1 script/teardown
dry-web-roda-0.9.0 script/teardown
dry-web-roda-0.8.0 script/teardown
dry-web-roda-0.7.5 script/teardown
dry-web-roda-0.7.4 script/teardown
dry-web-roda-0.7.3 script/teardown
dry-web-roda-0.7.2 script/teardown
dry-web-roda-0.7.1 script/teardown
dry-web-roda-0.7.0 script/teardown
dry-web-roda-0.6.3 script/teardown
dry-web-roda-0.6.2 script/teardown
dry-web-roda-0.6.1 script/teardown