Sha256: 202acfe8613887d26a25bf61680dcabdb33c87ff3adcc6ca6c96bdda7b66944a

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

module MCollective
  class Aggregate
    module Result
      class CollectionResult<Base
        def to_s
          return "" if @result[:value].keys.include?(nil)

          result = StringIO.new

          @result[:value].sort{|x,y| x[1] <=> y[1]}.reverse.each do |value|
            result.puts "    " + @aggregate_format % [value[0], value[1]]
          end

          result.string.chomp
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mcollective-client-2.2.0 lib/mcollective/aggregate/result/collection_result.rb