Skip to content
Browse files

apply [6248] to stable

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@6250 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent ee31d64 commit 742bee425632bc8b8745fac53bcea0eab29e02e1 @technoweenie technoweenie committed Feb 27, 2007
Showing with 6 additions and 5 deletions.
  1. +6 −5 railties/lib/commands/plugin.rb
View
11 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 = {})

0 comments on commit 742bee4

Please sign in to comment.
Something went wrong with that request. Please try again.