summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/rubygems.rb
diff options
context:
space:
mode:
authorPeter Burkholder <pburkholder@chef.io>2015-03-24 09:54:43 -0400
committerBryan McLellan <btm@chef.io>2015-03-27 13:35:42 -0700
commit36f040b73d99f0b5aae5bdab716ffa1aac060266 (patch)
tree3c4a7c6f05cd737518412f7e1350222a0fee388f /lib/chef/provider/package/rubygems.rb
parent3f100678176cf81be8f40a6721b6bd4b44135c76 (diff)
downloadchef-36f040b73d99f0b5aae5bdab716ffa1aac060266.tar.gz
Test for current behavior
Diffstat (limited to 'lib/chef/provider/package/rubygems.rb')
-rw-r--r--lib/chef/provider/package/rubygems.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/package/rubygems.rb b/lib/chef/provider/package/rubygems.rb
index 1dcd9d23ea..d152db1926 100644
--- a/lib/chef/provider/package/rubygems.rb
+++ b/lib/chef/provider/package/rubygems.rb
@@ -538,10 +538,10 @@ class Chef
def install_via_gem_command(name, version)
if @new_resource.source =~ /\.gem$/i
name = @new_resource.source
- elsif source_is_remote?
- src = @new_resource.source && " --source=#{@new_resource.source}"
+# elsif source_is_remote?
+# src = @new_resource.source && " --source=#{@new_resource.source}"
else
- src = @new_resource.source && " --source=#{@new_resource.source} --source=https://rubygems.org"
+ src = @new_resource.source && " --source=#{@new_resource.source} --source=https://rubygems.org"
end
if !version.nil? && version.length > 0
shell_out!("#{gem_binary_path} install #{name} -q --no-rdoc --no-ri -v \"#{version}\"#{src}#{opts}", :env=>nil)