Sha256: f77a4d1bf790c2e8b43886c0cabe798bfdf00d2225c73bc0f3f7db9e9f0d0903

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

#!/bin/bash
echo -e "\033[0;36mRuby Appraiser: running\033[0m"
bundle exec ruby-appraiser --all --mode=staged
result_code=$?
if [ $result_code -gt "0" ]; then
  echo -en "\033[0;31m" # RED
  echo "[✘] Ruby Appraiser found newly-created defects and "
  echo "    has blocked your commit."
  echo "    Fix the defects and commit again."
  echo "    To bypass, commit again with --no-verify."
  echo -en "\033[0m" # RESET
  exit $result_code
else
  echo -en "\033[0;32m" # GREEN
  echo "[✔] Ruby Appraiser ok"
  echo -en "\033[0m" #RESET
fi

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
implements-0.0.2 .githooks/pre-commit/run-ruby-appraiser