Sha256: 04f68d272a6b69f90047e6618cc475b098ac65becd92db878cb5ba7635c0e085

Contents?: true

Size: 424 Bytes

Versions: 55

Compression:

Stored size: 424 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

55 entries across 55 versions & 2 rubygems

Version Path
choria-mcorpc-support-2.22.1 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.22.0 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.21.1 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.21.0 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.20.8 lib/mcollective/aggregate/result/collection_result.rb
mcollective-client-2.12.5 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.20.7 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.20.6 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.20.5 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.20.4 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.20.3 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.20.2 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.20.0 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-0.0.1 lib/mcollective/aggregate/result/collection_result.rb
mcollective-client-2.12.4 lib/mcollective/aggregate/result/collection_result.rb
mcollective-client-2.12.3 lib/mcollective/aggregate/result/collection_result.rb
mcollective-client-2.12.1 lib/mcollective/aggregate/result/collection_result.rb
mcollective-client-2.12.0 lib/mcollective/aggregate/result/collection_result.rb
mcollective-client-2.10.6 lib/mcollective/aggregate/result/collection_result.rb
mcollective-client-2.11.4 lib/mcollective/aggregate/result/collection_result.rb