Parent

GemInstaller::OutputListener

Attributes

output_filter[W]

Public Class Methods

new() click to toggle source
    # File lib/geminstaller/output_listener.rb, line 8
 8:     def initialize
 9:       @messages = []
10:       @output_filter = nil
11:     end

Public Instance Methods

notify(msg, stream = :stdout) click to toggle source
    # File lib/geminstaller/output_listener.rb, line 13
13:     def notify(msg, stream = :stdout)
14:       @messages.push(msg)
15:       return unless @output_filter
16:       if stream == :stdout or stream == :stderr
17:         @output_filter.rubygems_output(stream, msg)
18:       else
19:         raise GemInstaller::GemInstallerError.new("Invalid stream specified: #{@stream}")
20:       end
21:     end
read() click to toggle source
    # File lib/geminstaller/output_listener.rb, line 23
23:     def read
24:       @messages.dup
25:     end
read!() click to toggle source
    # File lib/geminstaller/output_listener.rb, line 27
27:     def read!
28:       messages = @messages.dup
29:       @messages.clear
30:       messages
31:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.