Parent

Class Index [+]

Quicksearch

Bundler::UI::Shell

Attributes

shell[W]

Public Class Methods

new(shell) click to toggle source
    # File lib/bundler/ui.rb, line 27
27:       def initialize(shell)
28:         @shell = shell
29:         @quiet = false
30:         @debug = ENV['DEBUG']
31:       end

Public Instance Methods

be_quiet!() click to toggle source
    # File lib/bundler/ui.rb, line 49
49:       def be_quiet!
50:         @quiet = true
51:       end
confirm(msg, newline = nil) click to toggle source
    # File lib/bundler/ui.rb, line 37
37:       def confirm(msg, newline = nil)
38:         tell_me(msg, :green, newline) if !@quiet
39:       end
debug(msg, newline = nil) click to toggle source
    # File lib/bundler/ui.rb, line 62
62:       def debug(msg, newline = nil)
63:         tell_me(msg, nil, newline) if debug?
64:       end
debug!() click to toggle source
    # File lib/bundler/ui.rb, line 58
58:       def debug!
59:         @debug = true
60:       end
debug?() click to toggle source
    # File lib/bundler/ui.rb, line 53
53:       def debug?
54:         # needs to be false instead of nil to be newline param to other methods
55:         !!@debug && !@quiet
56:       end
error(msg, newline = nil) click to toggle source
    # File lib/bundler/ui.rb, line 45
45:       def error(msg, newline = nil)
46:         tell_me(msg, :red, newline)
47:       end
info(msg, newline = nil) click to toggle source
    # File lib/bundler/ui.rb, line 33
33:       def info(msg, newline = nil)
34:         tell_me(msg, nil, newline) if !@quiet
35:       end
warn(msg, newline = nil) click to toggle source
    # File lib/bundler/ui.rb, line 41
41:       def warn(msg, newline = nil)
42:         tell_me(msg, :yellow, newline)
43:       end

Private Instance Methods

tell_me(msg, color = nil, newline = nil) click to toggle source

valimism

    # File lib/bundler/ui.rb, line 68
68:       def tell_me(msg, color = nil, newline = nil)
69:         newline.nil? ? @shell.say(msg, color) : @shell.say(msg, color, newline)
70:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.