Merge pull request #548 from chef/dr/no-pretty

dont generate pretty json by default
This commit is contained in:
Christoph Hartmann 2016-03-17 15:56:31 +01:00
commit 5c3478ba69

View file

@ -28,7 +28,7 @@ class Inspec::InspecCLI < Inspec::BaseCLI # rubocop:disable Metrics/ClassLength
profile = Inspec::Profile.for_target(target, o)
dst = o[:output].to_s
if dst.empty?
puts JSON.pretty_generate(profile.info)
puts JSON.dump(profile.info)
else
if File.exist? dst
puts "----> updating #{dst}"