Sha256: 81defc59dff29810f92a922e7d8233422e8d10c27864467166848c1090dad823

Contents?: true

Size: 249 Bytes

Versions: 1

Compression:

Stored size: 249 Bytes

Contents

require 'json'

module Ec2spec
  module Formatter
    module HashFormatter
      def output(results, _hosts)
        results.each_with_object({}) do |result, hash|
          hash[result.host] = result.to_hash
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ec2spec-0.1.3 lib/ec2spec/formatter/hash_formatter.rb