123456789_123456789_123456789_123456789_123456789_

Class: Bundler::UI::Silent

Relationships & Source Files
Inherits: Object
Defined in: lib/bundler/ui/silent.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newSilent

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 8

def initialize
  @warnings = []
end

Instance Attribute Details

#debug?Boolean (readonly)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 32

def debug?
  false
end

#level(name = nil) (rw)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 54

def level(name = nil)
end

#level=(name) (rw)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 51

def level=(name)
end

#no?Boolean (readonly)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 47

def no?
  raise "Cannot ask no? with a silent shell"
end

#quiet?Boolean (readonly)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 36

def quiet?
  false
end

#shell=(value) (writeonly)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 6

attr_writer :shell

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 40

def ask(message)
end

#confirm(message, newline = nil)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 19

def confirm(message, newline = nil)
end

#debug(message, newline = nil) (readonly)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 29

def debug(message, newline = nil)
end

#error(message, newline = nil)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 26

def error(message, newline = nil)
end

#info(message, newline = nil)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 16

def info(message, newline = nil)
end

#silence

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 60

def silence
  yield
end

#trace(message, newline = nil, force = false)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 57

def trace(message, newline = nil, force = false)
end

#unprinted_warnings

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 64

def unprinted_warnings
  @warnings
end

#warn(message, newline = nil)

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 22

def warn(message, newline = nil)
  @warnings |= [message]
end

#yes?(msg) ⇒ Boolean

[ GitHub ]

  
# File 'lib/bundler/ui/silent.rb', line 43

def yes?(msg)
  raise "Cannot ask yes? with a silent shell"
end