Sha256: bd7bba3c1ddbb5d0e7be694eac77930258e5c2978e6e13e372090ec29c633f42

Contents?: true

Size: 1.3 KB

Versions: 334

Compression:

Stored size: 1.3 KB

Contents

#!/usr/bin/env bash

[ -n "$GO_DEBUG" ] && set -x
set -e

project_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

verbose="no"
skip_checks="no"
offline="no"

missing_dependency="no"

[ -n "$GO_DEBUG" ] && verbose="yes"
[ -n "$GO_SKIP_CHECKS" ] && skip_checks="yes"
[ -n "$GO_OFFLINE" ] && offline="yes"


if [[ "$skip_checks" = "no" ]]; then
    echo "Checking for system dependencies."
    ruby_version="$(cat "$project_dir"/.ruby-version)"
    if ! type ruby >/dev/null 2>&1 || ! ruby -v | grep -q "$ruby_version"; then
        echo "This codebase requires Ruby $ruby_version."
        missing_dependency="yes"
    fi

    if [[ "$missing_dependency" = "yes" ]]; then
        echo "Please install missing dependencies to continue."
        exit 1
    fi

    echo "All system dependencies present. Continuing."
fi

if [[ "$offline" = "no" ]]; then
    echo "Installing bundler."
    if [[ "$verbose" = "yes" ]]; then
        gem install --no-document bundler
    else
        gem install --no-document bundler > /dev/null
    fi

    echo "Installing ruby dependencies."
    if [[ "$verbose" = "yes" ]]; then
        bundle install
    else
        bundle install > /dev/null
    fi
fi

echo "Starting rake."
if [[ "$verbose" = "yes" ]]; then
    time bundle exec rake --verbose "$@"
else
    time bundle exec rake "$@"
fi

Version data entries

334 entries across 334 versions & 15 rubygems

Version Path
rake_gpg-0.6.0 go
rake_gpg-0.5.0.pre.1 go
rake_gpg-0.4.0 go
rake_gpg-0.3.0.pre.1 go
ruby_gpg2-0.2.0 go
rake_gpg-0.2.0 go
rake_gpg-0.1.0.pre.6 go
rake_terraform-1.9.0 go
rake_terraform-1.8.0.pre.2 go
ruby-terraform-0.54.0 go
rake_terraform-1.8.0.pre.1 go
ruby-terraform-0.53.0.pre.2 go
rake_easy_rsa-0.5.0 go
rake_easy_rsa-0.4.0.pre.1 go
ruby_easy_rsa-0.5.0 go
ruby_easy_rsa-0.4.0.pre.1 go
rake_gpg-0.1.0.pre.5 go
ruby_gpg2-0.1.0.pre.27 go
ruby_gpg2-0.1.0.pre.26 go
ruby_gpg2-0.1.0.pre.25 go