In Files

  • rubygems/user_interaction.rb

Class/Module Index [+]

Quicksearch

Gem::SilentUI

SilentUI is a UI choice that is absolutely silent.

Public Class Methods

new() click to toggle source
 
               # File rubygems/user_interaction.rb, line 550
def initialize
  reader, writer = nil, nil

  begin
    reader = File.open('/dev/null', 'r')
    writer = File.open('/dev/null', 'w')
  rescue Errno::ENOENT
    reader = File.open('nul', 'r')
    writer = File.open('nul', 'w')
  end

  super reader, writer, writer, false
end
            

Public Instance Methods

download_reporter(*args) click to toggle source
 
               # File rubygems/user_interaction.rb, line 564
def download_reporter(*args)
  SilentDownloadReporter.new(@outs, *args)
end
            
progress_reporter(*args) click to toggle source
 
               # File rubygems/user_interaction.rb, line 568
def progress_reporter(*args)
  SilentProgressReporter.new(@outs, *args)
end