Sha256: 1c058756bdee061b30b463eff32890f54796e9cb53b487b94cebd567cb659dbc

Contents?: true

Size: 428 Bytes

Versions: 20

Compression:

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

20 entries across 20 versions & 1 rubygems

Version Path
choria-mcorpc-support-2.26.5 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.26.4 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.26.3 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.26.2 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.26.1 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.26.0 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.25.3 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.25.2 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.25.1 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.25.0 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.24.4 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.24.3 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.24.2 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.24.1 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.24.0 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.23.3 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.23.2 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.23.1 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.23.0 lib/mcollective/aggregate/result/collection_result.rb
choria-mcorpc-support-2.23.0.pre lib/mcollective/aggregate/result/collection_result.rb