Module: Ec2spec::HashFormatter

Defined in:
lib/ec2spec/hash_formatter.rb

Instance Method Summary collapse

Instance Method Details

#output(results, _hosts) ⇒ Object



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

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