lib/chef/shef.rb in chef-0.9.14.beta.1 vs lib/chef/shef.rb in chef-0.9.14.rc.1

- old
+ new

@@ -22,12 +22,13 @@ require 'chef/version' require "chef/client" require "chef/config" -require "chef/shef/shef_session" -require "chef/shef/ext" +require 'chef/shef/shef_session' +require 'chef/shef/ext' +require 'chef/json_compat' # = Shef # Shef is Chef in an IRB session. Shef can interact with a Chef server via the # REST API, and run and debug recipes interactively. module Shef @@ -161,10 +162,10 @@ rescue Exception => error fatal!("Got an unexpected error reading #{Chef::Config[:json_attribs]}: #{error.message}", 2) end begin - @json_attribs = Chef::JSON.from_json(json_io.read) + @json_attribs = Chef::JSONCompat.from_json(json_io.read) rescue JSON::ParserError => error fatal!("Could not parse the provided JSON file (#{Chef::Config[:json_attribs]})!: " + error.message, 2) end end end