Class: Gem::SilentUI

Inherits:
StreamUI show all
Defined in:
lib/rubygems/user_interaction.rb

Overview

SilentUI is a UI choice that is absolutely silent.

Defined Under Namespace

Classes: NullIO

Instance Attribute Summary

Attributes inherited from StreamUI

#errs, #ins, #outs

Instance Method Summary collapse

Methods inherited from StreamUI

#_gets_noecho, #alert, #alert_error, #alert_warning, #ask, #ask_for_password, #ask_yes_no, #backtrace, #choose_from_list, #require_io_console, #say, #terminate_interaction, #tty?

Methods included from Deprecate

#deprecate, next_rubygems_major_version, rubygems_deprecate, rubygems_deprecate_command, skip, skip=, skip_during

Constructor Details

#initializeSilentUI

The SilentUI has no arguments as it does not use any stream.



620
621
622
623
# File 'lib/rubygems/user_interaction.rb', line 620

def initialize
  io = NullIO.new
  super io, io, io, false
end

Instance Method Details

#closeObject



625
626
# File 'lib/rubygems/user_interaction.rb', line 625

def close
end

#download_reporter(*args) ⇒ Object

:nodoc:



628
629
630
# File 'lib/rubygems/user_interaction.rb', line 628

def download_reporter(*args) # :nodoc:
  SilentDownloadReporter.new(@outs, *args)
end

#progress_reporter(*args) ⇒ Object

:nodoc:



632
633
634
# File 'lib/rubygems/user_interaction.rb', line 632

def progress_reporter(*args) # :nodoc:
  SilentProgressReporter.new(@outs, *args)
end