Class: Bundler::UI::Silent

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/ui/silent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSilent

Returns a new instance of Silent.



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

def initialize
  @warnings = []
end

Instance Attribute Details

#shell=(value) ⇒ Object (writeonly)

Sets the attribute shell

Parameters:

  • value

    the value to set the attribute shell to.



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

def shell=(value)
  @shell = value
end

Instance Method Details

#add_color(string, color) ⇒ Object



12
13
14
# File 'lib/bundler/ui/silent.rb', line 12

def add_color(string, color)
  string
end

#ask(message) ⇒ Object



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

def ask(message)
end

#confirm(message = nil, newline = nil) ⇒ Object



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

def confirm(message = nil, newline = nil)
end

#confirm?Boolean

Returns:

  • (Boolean)


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

def confirm?
  false
end

#debug(message = nil, newline = nil) ⇒ Object



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

def debug(message = nil, newline = nil)
end

#debug?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/bundler/ui/silent.rb', line 40

def debug?
  false
end

#error(message = nil, newline = nil) ⇒ Object



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

def error(message = nil, newline = nil)
end

#error?Boolean

Returns:

  • (Boolean)


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

def error?
  false
end

#info(message = nil, newline = nil) ⇒ Object



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

def info(message = nil, newline = nil)
end

#info?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/bundler/ui/silent.rb', line 44

def info?
  false
end

#level(name = nil) ⇒ Object



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

def level(name = nil)
end

#level=(name) ⇒ Object



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

def level=(name)
end

#no?Boolean

Returns:

  • (Boolean)


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

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

#quiet?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/bundler/ui/silent.rb', line 48

def quiet?
  false
end

#silenceObject



76
77
78
# File 'lib/bundler/ui/silent.rb', line 76

def silence
  yield
end

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



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

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

#unprinted_warningsObject



80
81
82
# File 'lib/bundler/ui/silent.rb', line 80

def unprinted_warnings
  @warnings
end

#warn(message = nil, newline = nil) ⇒ Object



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

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

#warn?Boolean

Returns:

  • (Boolean)


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

def warn?
  false
end

#yes?(msg) ⇒ Boolean

Returns:

  • (Boolean)


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

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