Skip to content

Instantly share code, notes, and snippets.

@akitaonrails
Forked from wayneeseguin/0_notes.txt
Created June 23, 2010 01:40
Show Gist options
  • Select an option

  • Save akitaonrails/449358 to your computer and use it in GitHub Desktop.

Select an option

Save akitaonrails/449358 to your computer and use it in GitHub Desktop.

Revisions

  1. @wayneeseguin wayneeseguin revised this gist Jun 18, 2010. 2 changed files with 8 additions and 4 deletions.
    6 changes: 5 additions & 1 deletion 0_notes.txt
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,8 @@ This could be further expanded to do anything you require :)

    The important thing to remember is that the purpose of these files is
    to allow you to very easily have your 'project context' (aka 'environment')
    loaded automatically for you when you enter the project in the shell (cd).
    loaded automatically for you when you enter the project in the shell (cd).

    You can generate the .rvmrc file below by running:

    rvm --create --rvmrc use 1.9.2
    6 changes: 3 additions & 3 deletions 1_.rvmrc
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # Project specific .rvmrc file
    if [[ -s "/Users/wayne/.rvm/environments/system" ]] ; then
    . "/Users/wayne/.rvm/environments/system"
    if [[ -s "/Users/wayne/.rvm/environments/ruby-1.9.2-preview3" ]] ; then
    . "/Users/wayne/.rvm/environments/ruby-1.9.2-preview3"
    else
    rvm --create use "system"
    rvm --create use "ruby-1.9.2-preview3"
    fi

    [[ -s "project_name.gems" ]] && rvm gemset import project_name.gems
  2. @wayneeseguin wayneeseguin revised this gist Jun 15, 2010. 4 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
    File renamed without changes.
    File renamed without changes.
  3. @wayneeseguin wayneeseguin created this gist Jun 15, 2010.
    10 changes: 10 additions & 0 deletions .rvmrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # Project specific .rvmrc file
    if [[ -s "/Users/wayne/.rvm/environments/system" ]] ; then
    . "/Users/wayne/.rvm/environments/system"
    else
    rvm --create use "system"
    fi

    [[ -s "project_name.gems" ]] && rvm gemset import project_name.gems

    bundle install
    2 changes: 2 additions & 0 deletions Gemfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    gem "haml"
    gem "compass"
    7 changes: 7 additions & 0 deletions notes.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    This is an example of using RVM's Project .rvmrc file
    to have it automatically bootstrap your environment, including bundler.
    This could be further expanded to do anything you require :)

    The important thing to remember is that the purpose of these files is
    to allow you to very easily have your 'project context' (aka 'environment')
    loaded automatically for you when you enter the project in the shell (cd).
    1 change: 1 addition & 0 deletions project_name.gems
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    bundler -v0.9.26