Module: Ec2spec::Formatter::HashFormatter

Included in:
JsonFormatter
Defined in:
lib/ec2spec/formatter/hash_formatter.rb

Instance Method Summary collapse

Instance Method Details

#output(results, _hosts) ⇒ Object



6
7
8
9
10
# File 'lib/ec2spec/formatter/hash_formatter.rb', line 6

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