Skip to content

Commit

Permalink
Merge remote-tracking branch 'ryansch/rvm-local-gem'
Browse files Browse the repository at this point in the history
  • Loading branch information
fnichol committed Oct 16, 2011
2 parents bac2a0b + 68fad0f commit 54c6458
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libraries/rvm_rubygems_package.rb
Expand Up @@ -136,8 +136,13 @@ def install_package(name, version)
end

def install_via_gem_command(name, version)
src = @new_resource.source &&
" --source=#{@new_resource.source} --source=http://rubygems.org"
# Handle installing from a local file.
if source_is_remote?
src = @new_resource.source &&
" --source=#{@new_resource.source} --source=http://rubygems.org"
else
name = @new_resource.source
end

cmd = %{rvm #{ruby_strings.join(',')} #{rvm_do(new_resource.user)} #{gem_binary_path}}
cmd << %{ install #{name} -q --no-rdoc --no-ri -v "#{version}"}
Expand Down

0 comments on commit 54c6458

Please sign in to comment.