Sha256: ad1bb1785d24dd3c46d9e4fd148f3888b0fa7443130f138964e04a15e20b7e85

Contents?: true

Size: 997 Bytes

Versions: 14

Compression:

Stored size: 997 Bytes

Contents

#!/usr/bin/env bash

function print_results() {
  exit_code=$?
  set +e

  echo ""

  if [[ "$exit_code" == "0" ]]; then
    echo "Success!"
  else
    echo "Something went wrong! Check the output above for details."
  fi
}
trap print_results INT TERM EXIT
set -e

echo ""
echo "Preparing environment for native development..."
bundle install

echo ""
echo "Preparing environment for dockerized development (if you choose to use it)..."

override_file='docker-compose.override.yml'
dev_override_file='docker-compose.dev.override.yml'
if [ -f ${override_file} ] && ! cmp ${override_file} ${dev_override_file} --silent; then
  echo "We found an existing ${override_file}"
  echo ""
  echo "You'll want to merge that file with the version controlled
docker-compose.dev.override.yml file to make sure you've got
the most recent changes."
  echo ""
else
  echo "We are copying the development example override file to docker-compose.override.yml for you."
  cp ${dev_override_file} ${override_file}
fi

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
quiz_api_client-2.5.2 bin/setup
quiz_api_client-2.5.1 bin/setup
quiz_api_client-2.5.0 bin/setup
quiz_api_client-2.4.3 bin/setup
quiz_api_client-2.4.2 bin/setup
quiz_api_client-2.4.1 bin/setup
quiz_api_client-2.4.0 bin/setup
quiz_api_client-2.3.1 bin/setup
quiz_api_client-2.3.0 bin/setup
quiz_api_client-2.2.0 bin/setup
quiz_api_client-2.1.0 bin/setup
quiz_api_client-2.0.0 bin/setup
quiz_api_client-1.1.0 bin/setup
quiz_api_client-1.0.0 bin/setup