Skip to content

Commit

Permalink
Gems gems everywhere and shes still not quite submissive...
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Jul 20, 2011
1 parent 12c3695 commit 4118565
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .gems
@@ -0,0 +1,10 @@
# .gems generated gem export file. Note that any env variable settings will be missing. Append these after using a ';' field separator
chunky_png -v1.2.0
compass -v0.11.5
cri -v1.0.1
fssm -v0.2.7
haml -v3.1.2
mime-types -v1.16
nanoc3 -v3.1.9
rack -v1.2.1
sass -v3.1.4
40 changes: 37 additions & 3 deletions .rvmrc
@@ -1,7 +1,41 @@
#!/usr/bin/env bash

rvm --create 1.9.2@bdsm-site
# This is an RVM Project .rvmrc file, used to automatically load the ruby
# development environment upon cd'ing into the directory

if [[ -s bdsm-site.gems ]] ; then
rvm gemset import bdsm-site.gems
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
environment_id="ruby-1.9.2-p290@bdsm-site"

#
# First we attempt to load the desired environment directly from the environment
# file. This is very fast and efficient compared to running through the entire
# CLI and selector. If you want feedback on which environment was used then
# insert the word 'use' after --create as this triggers verbose mode.
#
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
then
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"

if [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]]
then
. "${rvm_path:-$HOME/.rvm}/hooks/after_use"
fi
else
# If the environment file has not yet been created, use the RVM CLI to select.
if ! rvm --create "$environment_id"
then
echo "Failed to create RVM environment '${environment_id}'."
fi
fi

#
# If you use an RVM gemset file to install a list of gems (*.gems), you can have
# it be automatically loaded. Uncomment the following and adjust the filename if
# necessary.
#
filename=".gems"
if [[ -s "$filename" ]] ; then
rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
fi

0 comments on commit 4118565

Please sign in to comment.