fork download
  1. vagrant@cl2:/var/chef/reports$ ll
  2. total 332
  3. drwxr-xr-x 2 root root 4096 2012-12-07 17:30 ./
  4. drwxr-xr-x 5 root root 4096 2012-12-07 17:24 ../
  5. -rw-r--r-- 1 root root 99558 2012-12-07 17:25 chef-run-report-20121207172514.json
  6. -rw-r--r-- 1 root root 100711 2012-12-07 17:28 chef-run-report-20121207172827.json
  7. -rw-r--r-- 1 root root 126919 2012-12-07 17:29 chef-run-report-20121207172932.json
  8. vagrant@cl2:/var/chef/reports$ irb
  9. irb(main):001:0> require 'json'
  10. => true
  11. irb(main):002:0> require 'chef'
  12. => true
  13. irb(main):003:0> r = JSON.parse(IO.read('/var/chef/reports/chef-run-report-20121207172827.json'))
  14. TypeError: can't convert nil into String
  15. from /usr/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource/template.rb:36:in `basename'
  16. from /usr/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource/template.rb:36:in `initialize'
  17. from /usr/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource.rb:673:in `new'
  18. from /usr/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/resource.rb:673:in `json_create'
  19. from /usr/lib/ruby/1.9.1/json/common.rb:146:in `parse'
  20. from /usr/lib/ruby/1.9.1/json/common.rb:146:in `parse'
  21. from (irb):3
  22. from /usr/bin/irb:12:in `<main>'
  23. irb(main):004:0>
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty