Class: Gem::SilentUI
- Defined in:
- lib/rubygems/user_interaction.rb
Overview
SilentUI is a UI choice that is absolutely silent.
Instance Attribute Summary
Attributes inherited from StreamUI
Instance Method Summary collapse
- #close ⇒ Object
-
#download_reporter(*args) ⇒ Object
:nodoc:.
-
#initialize ⇒ SilentUI
constructor
The SilentUI has no arguments as it does not use any stream.
-
#progress_reporter(*args) ⇒ Object
:nodoc:.
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
#initialize ⇒ SilentUI
The SilentUI has no arguments as it does not use any stream.
618 619 620 621 622 623 624 625 |
# File 'lib/rubygems/user_interaction.rb', line 618 def initialize reader, writer = nil, nil reader = File.open(IO::NULL, 'r') writer = File.open(IO::NULL, 'w') super reader, writer, writer, false end |
Instance Method Details
#close ⇒ Object
627 628 629 630 631 |
# File 'lib/rubygems/user_interaction.rb', line 627 def close super @ins.close @outs.close end |
#download_reporter(*args) ⇒ Object
:nodoc:
633 634 635 |
# File 'lib/rubygems/user_interaction.rb', line 633 def download_reporter(*args) # :nodoc: SilentDownloadReporter.new(@outs, *args) end |
#progress_reporter(*args) ⇒ Object
:nodoc:
637 638 639 |
# File 'lib/rubygems/user_interaction.rb', line 637 def progress_reporter(*args) # :nodoc: SilentProgressReporter.new(@outs, *args) end |