From 4676b5eedd99a43ce87fbc8f7396b0b157b6f949 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Thu, 17 Mar 2016 15:41:57 +0100 Subject: [PATCH] dont generate pretty json by default we have jq for that! --- lib/inspec/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/inspec/cli.rb b/lib/inspec/cli.rb index 159e81658..487acb133 100644 --- a/lib/inspec/cli.rb +++ b/lib/inspec/cli.rb @@ -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}"