Sha256: 0f73c9a4931c2007efa36a0e556c5829216503c4d7dbc54492b1c0390a6daa7a
Contents?: true
Size: 250 Bytes
Versions: 1
Compression:
Stored size: 250 Bytes
Contents
require 'json' module Ec2spec module JsonFormatter def output(results, _hosts) result_hash = results.each_with_object({}) do |result, hash| hash[result.host] = result.to_hash end result_hash.to_json end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ec2spec-0.1.2 | lib/ec2spec/json_formatter.rb |