Skip to content

Commit

Permalink
Add example of local gem source installation in README. Closes sous-c…
Browse files Browse the repository at this point in the history
  • Loading branch information
fnichol committed Nov 26, 2011
1 parent 4e83b9e commit 217e109
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Expand Up @@ -678,7 +678,7 @@ package_name |**Name Attribute:** the name of the gem to install.|`nil`
ruby_string |An RVM Ruby string that could contain a gemset. If a gemset is given (for example, `"ruby-1.8.7-p330@awesome"`), then it will be used. |`"default"`
version |The specific version of the gem to install/upgrade. |`nil`
options |Add additional options to the underlying gem command. |`nil`
source |Provide an additional source for gem providers (such as RubyGems). |`nil`
source |Provide an additional source for gem providers (such as RubyGems). This can also include a file system path to a `.gem` file such as `/tmp/json-1.5.1.gem`. |`nil`
user |A users's isolated RVM installation on which to apply an action. The default value of `nil` denotes a system-wide RVM installation is being targeted. **Note:** if specified, the user must already exist. |`nil`

### Examples
Expand All @@ -703,6 +703,14 @@ user |A users's isolated RVM installation on which to apply an action. Th
**Note:** the install action is default, so the second example is a more common
usage. Gemsets can also be specified.

#### Install A Gem From A Local File

rvm_gem "json" do
ruby_string "ree@project"
source "/tmp/json-1.5.1.gem"
version "1.5.1"
end

#### Keep A Gem Up To Date

rvm_gem "homesick" do
Expand Down

0 comments on commit 217e109

Please sign in to comment.