)]}'
{"lib/puppet/parser/functions/write_package_names.rb":[{"author":{"_account_id":7582,"name":"Jan Provaznik","email":"jan.provaznik@gmail.com","username":"jprovazn"},"change_message_id":"aa6d2f2979e1cad59967f7e7dca87ad480776419","unresolved":false,"context_lines":[{"line_number":10,"context_line":"        File.open(output_file, \u0027w\u0027) do |f|"},{"line_number":11,"context_line":"            packages.each do |pkg_name|"},{"line_number":12,"context_line":"                f.write(pkg_name + \"\\n\")"},{"line_number":13,"context_line":"            end"},{"line_number":14,"context_line":"        end"},{"line_number":15,"context_line":"      rescue JSON::ParserError"},{"line_number":16,"context_line":"        raise Puppet::ParseError, \"Syntax error: #{arg[0]} is invalid\""}],"source_content_type":"text/x-ruby","patch_set":2,"id":"ba3cc151_6b7eaa6b","line":13,"updated":"2015-07-08 07:38:23.000000000","message":"just \"f.puts(packages)\" will do the same job","commit_id":"9f066c60f3c965ada31be7690ec61e1c493a36ca"},{"author":{"_account_id":7582,"name":"Jan Provaznik","email":"jan.provaznik@gmail.com","username":"jprovazn"},"change_message_id":"aa6d2f2979e1cad59967f7e7dca87ad480776419","unresolved":false,"context_lines":[{"line_number":11,"context_line":"            packages.each do |pkg_name|"},{"line_number":12,"context_line":"                f.write(pkg_name + \"\\n\")"},{"line_number":13,"context_line":"            end"},{"line_number":14,"context_line":"        end"},{"line_number":15,"context_line":"      rescue JSON::ParserError"},{"line_number":16,"context_line":"        raise Puppet::ParseError, \"Syntax error: #{arg[0]} is invalid\""},{"line_number":17,"context_line":"      end"}],"source_content_type":"text/x-ruby","patch_set":2,"id":"ba3cc151_6ba78a0b","line":14,"updated":"2015-07-08 07:38:23.000000000","message":"this block might be also written as:\n FileUtils.mkdir_p(File.dirname(output_file))\n File.open(output_file, \u0027w\u0027) do |f|\n   catalog.resources.each {|r| f.puts(r.title) if r.type \u003d\u003d \u0027Package\u0027}\n end","commit_id":"9f066c60f3c965ada31be7690ec61e1c493a36ca"}]}
