Parent

GemInstaller::OutputFilter

Attributes

output_proxy[W]
options[W]

Public Instance Methods

format_rubygems_message(type, message) click to toggle source
    # File lib/geminstaller/output_filter.rb, line 27
27:     def format_rubygems_message(type, message)
28:       prefix = case type
29:       when :stdout then "[RubyGems:stdout] "
30:       when :stderr then "[RubyGems:stderr] "
31:       end
32:       "#{prefix}#{message}"
33:     end
geminstaller_output(type, message) click to toggle source
    # File lib/geminstaller/output_filter.rb, line 11
11:     def geminstaller_output(type, message)
12:       return if @options[:silent]
13:       return unless geminstaller_output_type_matches?(type)
14:       output(:geminstaller, type, message)
15:     end
geminstaller_output_type_matches?(type) click to toggle source
    # File lib/geminstaller/output_filter.rb, line 42
42:     def geminstaller_output_type_matches?(type)
43:       return false unless @options[:geminstaller_output]
44:       return true if @options[:geminstaller_output].include?(:all)
45:       return true if @options[:geminstaller_output].include?(type)
46:       return false
47:     end
output(source, type, message) click to toggle source
    # File lib/geminstaller/output_filter.rb, line 17
17:     def output(source, type, message)
18:       message = format_rubygems_message(type,message) if source == :rubygems
19:       if (source == :geminstaller and type == :error)
20:         @output_proxy.syserr(message)
21:         
22:       else
23:         @output_proxy.sysout(message)
24:       end
25:     end
rubygems_output(type, message) click to toggle source
   # File lib/geminstaller/output_filter.rb, line 5
5:     def rubygems_output(type, message)
6:       return if @options[:silent]
7:       return unless rubygems_output_type_matches?(type)
8:       output(:rubygems, type, message)
9:     end
rubygems_output_type_matches?(type) click to toggle source
    # File lib/geminstaller/output_filter.rb, line 35
35:     def rubygems_output_type_matches?(type)
36:       return false unless @options[:rubygems_output]
37:       return true if @options[:rubygems_output].include?(:all)
38:       return true if @options[:rubygems_output].include?(type)
39:       return false
40:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.