dont generate pretty json by default

we have jq for that!
This commit is contained in:
Dominik Richter 2016-03-17 15:41:57 +01:00
parent 424d97c0b6
commit 4676b5eedd

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}"