Sha256: bb1f3c775fd50eba78ecd0a8904c754b2c717b9c49aebfc8ce469f628775cff4

Contents?: true

Size: 1.43 KB

Versions: 103

Compression:

Stored size: 1.43 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 ! type bundler >/dev/null 2>&1; then
        echo "This codebase requires Bundler."
        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

103 entries across 103 versions & 7 rubygems

Version Path
ruby-terraform-0.24.0 go
ruby-terraform-0.23.0.pre.pre.1 go
rollo-0.7.0 go
rake_docker-0.20.0.pre.pre.2 go
ruby-terraform-0.22.0 go
ruby-terraform-0.21.0.pre.pre.2 go
ruby-terraform-0.21.0.pre.pre.1 go
rake_terraform-0.27.0 go
ruby-terraform-0.20.0 go
rake_terraform-0.26.0.pre.pre.3 go
ruby-terraform-0.19.0.pre.pre.5 go
rollo-0.6.0 go
rollo-0.5.0 go
rollo-0.4.0 go
rollo-0.3.0 go
rollo-0.2.0 go
rollo-0.1.0 go
ruby-terraform-0.19.0.pre.pre.4 go
ruby_fly-0.8.0.pre.pre.1 go
rake_terraform-0.26.0.pre.pre.2 go