# File lib/chef/knife/core/node_editor.rb, line 58 def edit_data(text) edited_data = tempfile_for(text) {|filename| system("#{config[:editor]} #{filename}")} Chef::JSONCompat.from_json(edited_data) end