Sha256: cde87bd3055546b8d7ce4ef61fe3adaef8dee263766b9fa497fccec7224de079

Contents?: true

Size: 618 Bytes

Versions: 1

Compression:

Stored size: 618 Bytes

Contents

#!/bin/bash

# http://github.com/papercavalier/rake_rubies

if which rvm > /dev/null; then
  RUBIES=$(echo `rvm list strings` | tr " " "\n")
  if [ -e ".rvmrc" ]; then
    GEMSET=`grep -m 1 -o -e "\@[^ ]*" .rvmrc`
  fi
  for RUBY in $RUBIES; do
    if [ $RUBY != "default" ]; then
      if [ -e "Gemfile" ]; then
        if !(which bundle > /dev/null); then
          rvm "$RUBY@global" gem install bundler --pre
        fi
        rvm "$RUBY$GEMSET" ruby -S bundle install > /dev/null
      fi
      rvm "$RUBY$GEMSET" rake $1
    fi
  done
  if [ -e ".rvmrc" ]; then
    sh .rvmrc > /dev/null
  fi
else
  rake $1
fi

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bookland-0.3.0 rake_rubies.sh