Permalink
Browse files

Handle installing a gem from a local file.

  • Loading branch information...
1 parent 5f89472 commit 68fad0faef893352e94a813d163cbf3e64f9fb5d @ryansch ryansch committed Oct 13, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 libraries/rvm_rubygems_package.rb
@@ -131,8 +131,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(',')} #{gem_binary_path}}
cmd << %{ install #{name} -q --no-rdoc --no-ri -v "#{version}"}

0 comments on commit 68fad0f

Please sign in to comment.