Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sudo method is defined on Bundler module

  • Loading branch information...
commit 6bb7b10fbe7ad5876c3601413a5aa29cbe2c1b80 1 parent cd2b49f
Santiago Pastorino spastorino authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/bundler/fetcher.rb
4 lib/bundler/fetcher.rb
View
@@ -32,8 +32,8 @@ def download_gem_from_uri(spec, uri)
Bundler.rubygems.download_gem(spec, uri, download_path)
if Bundler.requires_sudo?
- sudo "mkdir -p #{Bundler.rubygems.gem_dir}/cache"
- sudo "mv #{Bundler.tmp}/cache/#{spec.full_name}.gem #{gem_path}"
+ Bundler.sudo "mkdir -p #{Bundler.rubygems.gem_dir}/cache"
+ Bundler.sudo "mv #{Bundler.tmp}/cache/#{spec.full_name}.gem #{gem_path}"
end
gem_path
Please sign in to comment.
Something went wrong with that request. Please try again.