{"action":"created","comment":{"url":"https://api.github.com/repos/zumper/prerender/pulls/comments/44741780","id":44741780,"diff_hunk":"@@ -0,0 +1,128 @@\n+var crypto = require('crypto'),\n+    fs = require('fs'),\n+    path = require('path'),\n+    url = require('url');\n+\n+var dirPath = '/tmp/';  // TODO:  ASK STU WHAT DIRECTORY TO USE\n+\n+var defaultFormat = 'Letter',\n+    defaultOrientation = 'portrait',\n+    defaultMargin = {top: '5mm', bottom: '5mm'};\n+\n+var paramKeys = ['pdfFormat', 'pdfOrientation', 'pdfMargin', 'pdfViewport', 'pdfFooter'];\n+\n+module.exports = {\n+\n+    init: function() {\n+      utils.eraseOldFiles(dirPath, 0);","path":"lib/plugins/pdfMaker.js","position":17,"original_position":17,"commit_id":"68600863f02e5af4bbba0367cf4245761d3b722f","original_commit_id":"68600863f02e5af4bbba0367cf4245761d3b722f","user":{"login":"Woodya","id":159388,"avatar_url":"https://avatars.githubusercontent.com/u/159388?v=3","gravatar_id":"","url":"https://api.github.com/users/Woodya","html_url":"https://github.com/Woodya","followers_url":"https://api.github.com/users/Woodya/followers","following_url":"https://api.github.com/users/Woodya/following{/other_user}","gists_url":"https://api.github.com/users/Woodya/gists{/gist_id}","starred_url":"https://api.github.com/users/Woodya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Woodya/subscriptions","organizations_url":"https://api.github.com/users/Woodya/orgs","repos_url":"https://api.github.com/users/Woodya/repos","events_url":"https://api.github.com/users/Woodya/events{/privacy}","received_events_url":"https://api.github.com/users/Woodya/received_events","type":"User","site_admin":false},"body":"bad. running in clusters.","created_at":"2015-11-13T01:46:11Z","updated_at":"2015-11-13T01:46:11Z","html_url":"https://github.com/zumper/prerender/pull/6#discussion_r44741780","pull_request_url":"https://api.github.com/repos/zumper/prerender/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/zumper/prerender/pulls/comments/44741780"},"html":{"href":"https://github.com/zumper/prerender/pull/6#discussion_r44741780"},"pull_request":{"href":"https://api.github.com/repos/zumper/prerender/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/zumper/prerender/pulls/6","id":50590758,"html_url":"https://github.com/zumper/prerender/pull/6","diff_url":"https://github.com/zumper/prerender/pull/6.diff","patch_url":"https://github.com/zumper/prerender/pull/6.patch","issue_url":"https://api.github.com/repos/zumper/prerender/issues/6","number":6,"state":"open","locked":false,"title":"implement pdfMaker plugin","user":{"login":"mikephoran","id":7339758,"avatar_url":"https://avatars.githubusercontent.com/u/7339758?v=3","gravatar_id":"","url":"https://api.github.com/users/mikephoran","html_url":"https://github.com/mikephoran","followers_url":"https://api.github.com/users/mikephoran/followers","following_url":"https://api.github.com/users/mikephoran/following{/other_user}","gists_url":"https://api.github.com/users/mikephoran/gists{/gist_id}","starred_url":"https://api.github.com/users/mikephoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikephoran/subscriptions","organizations_url":"https://api.github.com/users/mikephoran/orgs","repos_url":"https://api.github.com/users/mikephoran/repos","events_url":"https://api.github.com/users/mikephoran/events{/privacy}","received_events_url":"https://api.github.com/users/mikephoran/received_events","type":"User","site_admin":false},"body":"Prerender portion of the credit report restyle: https://github.com/zumper/zumper_code/pull/4533/files\r\n\r\nMy changes in that PR are in the following files:\r\n- Makefile\r\n- zumper/release/role/skel/dora/supervisor/role.conf\r\n- zumper/release/role/skel/frontend/supervisor/role.conf\r\n- zumper/release/role/skel/test/supervisor/role.conf\r\n- zumper/settings.py (all)\r\n- zumper/www/zapp/frontend/views/api_pro.py\r\n- zumper/www/zapp/frontend/views/api_tenant.py\r\n\r\nNOTE: The role.conf files will definitely need revision, because I haven't messed with the cgroups before or all the complicated prerender checking we do. ","created_at":"2015-11-13T00:47:24Z","updated_at":"2015-11-13T01:46:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7565710e855736b7410b43b6ff8702567768f94","assignee":{"login":"Woodya","id":159388,"avatar_url":"https://avatars.githubusercontent.com/u/159388?v=3","gravatar_id":"","url":"https://api.github.com/users/Woodya","html_url":"https://github.com/Woodya","followers_url":"https://api.github.com/users/Woodya/followers","following_url":"https://api.github.com/users/Woodya/following{/other_user}","gists_url":"https://api.github.com/users/Woodya/gists{/gist_id}","starred_url":"https://api.github.com/users/Woodya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Woodya/subscriptions","organizations_url":"https://api.github.com/users/Woodya/orgs","repos_url":"https://api.github.com/users/Woodya/repos","events_url":"https://api.github.com/users/Woodya/events{/privacy}","received_events_url":"https://api.github.com/users/Woodya/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/zumper/prerender/pulls/6/commits","review_comments_url":"https://api.github.com/repos/zumper/prerender/pulls/6/comments","review_comment_url":"https://api.github.com/repos/zumper/prerender/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zumper/prerender/issues/6/comments","statuses_url":"https://api.github.com/repos/zumper/prerender/statuses/68600863f02e5af4bbba0367cf4245761d3b722f","head":{"label":"zumper:m.pdf_maker","ref":"m.pdf_maker","sha":"68600863f02e5af4bbba0367cf4245761d3b722f","user":{"login":"zumper","id":1731112,"avatar_url":"https://avatars.githubusercontent.com/u/1731112?v=3","gravatar_id":"","url":"https://api.github.com/users/zumper","html_url":"https://github.com/zumper","followers_url":"https://api.github.com/users/zumper/followers","following_url":"https://api.github.com/users/zumper/following{/other_user}","gists_url":"https://api.github.com/users/zumper/gists{/gist_id}","starred_url":"https://api.github.com/users/zumper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zumper/subscriptions","organizations_url":"https://api.github.com/users/zumper/orgs","repos_url":"https://api.github.com/users/zumper/repos","events_url":"https://api.github.com/users/zumper/events{/privacy}","received_events_url":"https://api.github.com/users/zumper/received_events","type":"Organization","site_admin":false},"repo":{"id":30778747,"name":"prerender","full_name":"zumper/prerender","owner":{"login":"zumper","id":1731112,"avatar_url":"https://avatars.githubusercontent.com/u/1731112?v=3","gravatar_id":"","url":"https://api.github.com/users/zumper","html_url":"https://github.com/zumper","followers_url":"https://api.github.com/users/zumper/followers","following_url":"https://api.github.com/users/zumper/following{/other_user}","gists_url":"https://api.github.com/users/zumper/gists{/gist_id}","starred_url":"https://api.github.com/users/zumper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zumper/subscriptions","organizations_url":"https://api.github.com/users/zumper/orgs","repos_url":"https://api.github.com/users/zumper/repos","events_url":"https://api.github.com/users/zumper/events{/privacy}","received_events_url":"https://api.github.com/users/zumper/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zumper/prerender","description":"Node server that uses phantomjs to render a javascript-rendered page as HTML. To be used in conjunction with prerender middleware.","fork":true,"url":"https://api.github.com/repos/zumper/prerender","forks_url":"https://api.github.com/repos/zumper/prerender/forks","keys_url":"https://api.github.com/repos/zumper/prerender/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zumper/prerender/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zumper/prerender/teams","hooks_url":"https://api.github.com/repos/zumper/prerender/hooks","issue_events_url":"https://api.github.com/repos/zumper/prerender/issues/events{/number}","events_url":"https://api.github.com/repos/zumper/prerender/events","assignees_url":"https://api.github.com/repos/zumper/prerender/assignees{/user}","branches_url":"https://api.github.com/repos/zumper/prerender/branches{/branch}","tags_url":"https://api.github.com/repos/zumper/prerender/tags","blobs_url":"https://api.github.com/repos/zumper/prerender/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zumper/prerender/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zumper/prerender/git/refs{/sha}","trees_url":"https://api.github.com/repos/zumper/prerender/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zumper/prerender/statuses/{sha}","languages_url":"https://api.github.com/repos/zumper/prerender/languages","stargazers_url":"https://api.github.com/repos/zumper/prerender/stargazers","contributors_url":"https://api.github.com/repos/zumper/prerender/contributors","subscribers_url":"https://api.github.com/repos/zumper/prerender/subscribers","subscription_url":"https://api.github.com/repos/zumper/prerender/subscription","commits_url":"https://api.github.com/repos/zumper/prerender/commits{/sha}","git_commits_url":"https://api.github.com/repos/zumper/prerender/git/commits{/sha}","comments_url":"https://api.github.com/repos/zumper/prerender/comments{/number}","issue_comment_url":"https://api.github.com/repos/zumper/prerender/issues/comments{/number}","contents_url":"https://api.github.com/repos/zumper/prerender/contents/{+path}","compare_url":"https://api.github.com/repos/zumper/prerender/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zumper/prerender/merges","archive_url":"https://api.github.com/repos/zumper/prerender/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zumper/prerender/downloads","issues_url":"https://api.github.com/repos/zumper/prerender/issues{/number}","pulls_url":"https://api.github.com/repos/zumper/prerender/pulls{/number}","milestones_url":"https://api.github.com/repos/zumper/prerender/milestones{/number}","notifications_url":"https://api.github.com/repos/zumper/prerender/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zumper/prerender/labels{/name}","releases_url":"https://api.github.com/repos/zumper/prerender/releases{/id}","created_at":"2015-02-13T22:20:15Z","updated_at":"2015-04-29T09:47:28Z","pushed_at":"2015-11-13T00:47:24Z","git_url":"git://github.com/zumper/prerender.git","ssh_url":"git@github.com:zumper/prerender.git","clone_url":"https://github.com/zumper/prerender.git","svn_url":"https://github.com/zumper/prerender","homepage":"","size":449,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"zumper:master","ref":"master","sha":"79c0617bf6cae21c8ae463d7b49fbdfb7b307d86","user":{"login":"zumper","id":1731112,"avatar_url":"https://avatars.githubusercontent.com/u/1731112?v=3","gravatar_id":"","url":"https://api.github.com/users/zumper","html_url":"https://github.com/zumper","followers_url":"https://api.github.com/users/zumper/followers","following_url":"https://api.github.com/users/zumper/following{/other_user}","gists_url":"https://api.github.com/users/zumper/gists{/gist_id}","starred_url":"https://api.github.com/users/zumper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zumper/subscriptions","organizations_url":"https://api.github.com/users/zumper/orgs","repos_url":"https://api.github.com/users/zumper/repos","events_url":"https://api.github.com/users/zumper/events{/privacy}","received_events_url":"https://api.github.com/users/zumper/received_events","type":"Organization","site_admin":false},"repo":{"id":30778747,"name":"prerender","full_name":"zumper/prerender","owner":{"login":"zumper","id":1731112,"avatar_url":"https://avatars.githubusercontent.com/u/1731112?v=3","gravatar_id":"","url":"https://api.github.com/users/zumper","html_url":"https://github.com/zumper","followers_url":"https://api.github.com/users/zumper/followers","following_url":"https://api.github.com/users/zumper/following{/other_user}","gists_url":"https://api.github.com/users/zumper/gists{/gist_id}","starred_url":"https://api.github.com/users/zumper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zumper/subscriptions","organizations_url":"https://api.github.com/users/zumper/orgs","repos_url":"https://api.github.com/users/zumper/repos","events_url":"https://api.github.com/users/zumper/events{/privacy}","received_events_url":"https://api.github.com/users/zumper/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zumper/prerender","description":"Node server that uses phantomjs to render a javascript-rendered page as HTML. To be used in conjunction with prerender middleware.","fork":true,"url":"https://api.github.com/repos/zumper/prerender","forks_url":"https://api.github.com/repos/zumper/prerender/forks","keys_url":"https://api.github.com/repos/zumper/prerender/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zumper/prerender/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zumper/prerender/teams","hooks_url":"https://api.github.com/repos/zumper/prerender/hooks","issue_events_url":"https://api.github.com/repos/zumper/prerender/issues/events{/number}","events_url":"https://api.github.com/repos/zumper/prerender/events","assignees_url":"https://api.github.com/repos/zumper/prerender/assignees{/user}","branches_url":"https://api.github.com/repos/zumper/prerender/branches{/branch}","tags_url":"https://api.github.com/repos/zumper/prerender/tags","blobs_url":"https://api.github.com/repos/zumper/prerender/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zumper/prerender/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zumper/prerender/git/refs{/sha}","trees_url":"https://api.github.com/repos/zumper/prerender/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zumper/prerender/statuses/{sha}","languages_url":"https://api.github.com/repos/zumper/prerender/languages","stargazers_url":"https://api.github.com/repos/zumper/prerender/stargazers","contributors_url":"https://api.github.com/repos/zumper/prerender/contributors","subscribers_url":"https://api.github.com/repos/zumper/prerender/subscribers","subscription_url":"https://api.github.com/repos/zumper/prerender/subscription","commits_url":"https://api.github.com/repos/zumper/prerender/commits{/sha}","git_commits_url":"https://api.github.com/repos/zumper/prerender/git/commits{/sha}","comments_url":"https://api.github.com/repos/zumper/prerender/comments{/number}","issue_comment_url":"https://api.github.com/repos/zumper/prerender/issues/comments{/number}","contents_url":"https://api.github.com/repos/zumper/prerender/contents/{+path}","compare_url":"https://api.github.com/repos/zumper/prerender/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zumper/prerender/merges","archive_url":"https://api.github.com/repos/zumper/prerender/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zumper/prerender/downloads","issues_url":"https://api.github.com/repos/zumper/prerender/issues{/number}","pulls_url":"https://api.github.com/repos/zumper/prerender/pulls{/number}","milestones_url":"https://api.github.com/repos/zumper/prerender/milestones{/number}","notifications_url":"https://api.github.com/repos/zumper/prerender/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zumper/prerender/labels{/name}","releases_url":"https://api.github.com/repos/zumper/prerender/releases{/id}","created_at":"2015-02-13T22:20:15Z","updated_at":"2015-04-29T09:47:28Z","pushed_at":"2015-11-13T00:47:24Z","git_url":"git://github.com/zumper/prerender.git","ssh_url":"git@github.com:zumper/prerender.git","clone_url":"https://github.com/zumper/prerender.git","svn_url":"https://github.com/zumper/prerender","homepage":"","size":449,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zumper/prerender/pulls/6"},"html":{"href":"https://github.com/zumper/prerender/pull/6"},"issue":{"href":"https://api.github.com/repos/zumper/prerender/issues/6"},"comments":{"href":"https://api.github.com/repos/zumper/prerender/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/zumper/prerender/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/zumper/prerender/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zumper/prerender/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/zumper/prerender/statuses/68600863f02e5af4bbba0367cf4245761d3b722f"}}}}