diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-26 00:37:11 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-26 00:37:11 +0000 |
commit | ff7be746e0cd0ecd67327286f1b2f5ffe96c915f (patch) | |
tree | a5e81ebccc71fb3c282c309b0d9757f4bfe04b04 /railties/lib | |
parent | ab7c7a8edd943e178064b2b79c75fb60781eea3e (diff) | |
download | rails-ff7be746e0cd0ecd67327286f1b2f5ffe96c915f.tar.gz rails-ff7be746e0cd0ecd67327286f1b2f5ffe96c915f.tar.bz2 rails-ff7be746e0cd0ecd67327286f1b2f5ffe96c915f.zip |
Added more information to script/plugin's doings to ease debugging #3755 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/commands/plugin.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/lib/commands/plugin.rb b/railties/lib/commands/plugin.rb index f3bea4ce8f..664e2f795f 100644 --- a/railties/lib/commands/plugin.rb +++ b/railties/lib/commands/plugin.rb @@ -175,6 +175,7 @@ class Plugin def uninstall path = "#{rails_env.root}/vendor/plugins/#{name}" if File.directory?(path) + puts "Removing 'vendor/plugins/#{name}'" if $verbose rm_r path else puts "Plugin doesn't exist: #{path}" @@ -211,6 +212,7 @@ class Plugin 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 @@ -222,6 +224,7 @@ class Plugin base_cmd = "svn #{cmd} #{uri} \"#{root}/vendor/plugins/#{name}\"" base_cmd += ' -q' if options[:quiet] and not $verbose base_cmd += " -r #{options[:revision]}" if options[:revision] + puts base_cmd if $verbose system(base_cmd) end @@ -331,8 +334,7 @@ class Repository attr_reader :uri, :plugins def initialize(uri) - uri << "/" unless uri =~ /\/$/ - @uri = uri + @uri = uri.chomp('/') << "/" @plugins = nil end |