summaryrefslogtreecommitdiff
path: root/lib/chef/application.rb
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-10-16 08:37:30 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-10-16 08:37:30 -0700
commitd320610cdcaca87ba370027523a5b0d221c96f34 (patch)
tree38ff3fb92d611e9531924b005c4d1b33647e0fd6 /lib/chef/application.rb
parentcb8845818e9a130d1a85793675aa1216b936d168 (diff)
downloadchef-d320610cdcaca87ba370027523a5b0d221c96f34.tar.gz
Prettify data when writing it out in --local-mode
Diffstat (limited to 'lib/chef/application.rb')
-rw-r--r--lib/chef/application.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb
index 8bd8506749..cbff7bf838 100644
--- a/lib/chef/application.rb
+++ b/lib/chef/application.rb
@@ -187,8 +187,11 @@ class Chef::Application
require 'chef_zero/server'
require 'chef/chef_fs/chef_fs_data_store'
require 'chef/chef_fs/config'
+
+ chef_fs = Chef::ChefFS::Config.new.local_fs
+ chef_fs.write_pretty_json = true
server_options = {}
- server_options[:data_store] = Chef::ChefFS::ChefFSDataStore.new(Chef::ChefFS::Config.new.local_fs)
+ server_options[:data_store] = Chef::ChefFS::ChefFSDataStore.new(chef_fs)
server_options[:log_level] = Chef::Log.level
server_options[:port] = Chef::Config.chef_zero.port
Chef::Log.info("Starting chef-zero on port #{Chef::Config.chef_zero.port} with repository at #{server_options[:data_store].chef_fs.fs_description}")