Class: Bundler::UI::Silent
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/bundler/ui/silent.rb |
Class Method Summary
- .new ⇒ Silent constructor
Instance Attribute Summary
- #confirm? ⇒ Boolean readonly
- #debug? ⇒ Boolean readonly
- #error? ⇒ Boolean readonly
- #info? ⇒ Boolean readonly
- #level(name = nil) rw
- #level=(name) rw
- #output_stream rw
- #output_stream=(_symbol) rw
- #quiet? ⇒ Boolean readonly
- #shell=(value) writeonly
- #warn? ⇒ Boolean readonly
Instance Method Summary
- #add_color(string, color)
- #ask(message)
- #confirm(message = nil, newline = nil) readonly
- #debug(message = nil, newline = nil) readonly
- #error(message = nil, newline = nil) readonly
- #info(message = nil, newline = nil) readonly
- #no?(msg) ⇒ Boolean
- #progress
- #silence
- #trace(message, newline = nil, force = false)
- #unprinted_warnings
- #warn(message = nil, newline = nil) readonly
- #yes?(msg) ⇒ Boolean
Constructor Details
.new ⇒ Silent
# File 'lib/bundler/ui/silent.rb', line 8
def initialize @warnings = [] end
Instance Attribute Details
#confirm? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/bundler/ui/silent.rb', line 32
def confirm? false end
#debug? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/bundler/ui/silent.rb', line 40
def debug? false end
#error? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/bundler/ui/silent.rb', line 36
def error? false end
#info? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/bundler/ui/silent.rb', line 44
def info? false end
#level(name = nil) (rw)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 77
def level(name = nil) end
#level=(name) (rw)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 74
def level=(name) end
#output_stream (rw)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 59
def output_stream nil end
#output_stream=(_symbol) (rw)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 56
def output_stream=(_symbol) end
#quiet? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/bundler/ui/silent.rb', line 48
def quiet? false end
#shell=(value) (writeonly)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 6
attr_writer :shell
#warn? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/bundler/ui/silent.rb', line 52
def warn? false end
Instance Method Details
#add_color(string, color)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 12
def add_color(string, color) string end
#ask(message)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 63
def ask( ) end
#confirm(message = nil, newline = nil) (readonly)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 19
def confirm( = nil, newline = nil) end
#debug(message = nil, newline = nil) (readonly)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 29
def debug( = nil, newline = nil) end
#error(message = nil, newline = nil) (readonly)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 26
def error( = nil, newline = nil) end
#info(message = nil, newline = nil) (readonly)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 16
def info( = nil, newline = nil) end
#no?(msg) ⇒ Boolean
# File 'lib/bundler/ui/silent.rb', line 70
def no?(msg) raise "Cannot ask no? with a silent shell" end
#progress
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 87
def progress yield end
#silence
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 83
def silence yield end
#trace(message, newline = nil, force = false)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 80
def trace(, newline = nil, force = false) end
#unprinted_warnings
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 91
def unprinted_warnings @warnings end
#warn(message = nil, newline = nil) (readonly)
[ GitHub ]# File 'lib/bundler/ui/silent.rb', line 22
def warn( = nil, newline = nil) @warnings |= [ ] end
#yes?(msg) ⇒ Boolean
# File 'lib/bundler/ui/silent.rb', line 66
def yes?(msg) raise "Cannot ask yes? with a silent shell" end