Permalink
Browse files

UI#debug! if options["verbose"], remove silly CLI#plain_shell

  • Loading branch information...
indirect committed Nov 13, 2010
1 parent 25c6f93 commit e0314d4e90187211c19afce078a53a65b1245c46
Showing with 4 additions and 8 deletions.
  1. +4 −8 lib/bundler/cli.rb
View
@@ -12,8 +12,10 @@ class CLI < Thor
def initialize(*)
super
- plain_shell(options["no-color"])
- ENV["DEBUG"] = "true" if options["verbose"]
+ the_shell = options["no-color"] ? Thor::Shell::Basic.new : shell
+ Bundler.ui = UI::Shell.new(the_shell)
+ Bundler.ui.debug! if options["verbose"]
+ Gem::DefaultUserInteraction.ui = UI::RGProxy.new(Bundler.ui)
end
check_unknown_options! unless ARGV.include?("exec") || ARGV.include?("config")
@@ -512,11 +514,5 @@ def locate_gem(name)
spec.full_gem_path
end
- def plain_shell(disable_color)
- use_shell = disable_color ? Thor::Shell::Basic.new : shell
- Bundler.ui = UI::Shell.new(use_shell)
- Gem::DefaultUserInteraction.ui = UI::RGProxy.new(Bundler.ui)
- end
-
end
end

0 comments on commit e0314d4

Please sign in to comment.