Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

boot.rb sets RAILS_ROOT, so remove that. Install http plugins inside …

…a Dir.chdir block so that the cwd doesn't change

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 88876163f9fa830a846e9b97a8347248837b6613 1 parent 81ae385
@technoweenie technoweenie authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 railties/lib/commands/plugin.rb
View
12 railties/lib/commands/plugin.rb
@@ -240,11 +240,12 @@ def install_using_externals(options = {})
def install_using_http(options = {})
root = rails_env.root
mkdir_p "#{root}/vendor/plugins"
- Dir.chdir "#{root}/vendor/plugins"
- puts "fetching from '#{uri}'" if $verbose
- fetcher = RecursiveHTTPFetcher.new(uri)
- fetcher.quiet = true if options[:quiet]
- fetcher.fetch
+ Dir.chdir "#{root}/vendor/plugins" do
+ puts "fetching from '#{uri}'" if $verbose
+ fetcher = RecursiveHTTPFetcher.new(uri)
+ fetcher.quiet = true if options[:quiet]
+ fetcher.fetch
+ end
end
def svn_command(cmd, options = {})
@@ -914,5 +915,4 @@ def fetch_dir(url)
end
end
-RAILS_ROOT = RailsEnvironment.default.root unless Object.const_defined?(:RAILS_ROOT)
Commands::Plugin.parse!
Please sign in to comment.
Something went wrong with that request. Please try again.