GitHub PullRequestReviewCommentEvent at 2014-09-19 21:45:04
Repository: whats-fresh
Actor: jordane
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls/comments/17811353","id":17811353,"diff_hunk":"@@ -68,7 +53,76 @@\n   # Add Postgis extension to database\n   bash \"create Postgis extension in whats_fresh database\" do\n     code <<-EOH\n-      runuser -l postgres -c 'psql whats_fresh -c \"CREATE EXTENSION postgis;\"'\n+      runuser -l postgres -c 'psql whats_fresh -c \"CREATE EXTENSION IF NOT EXISTS postgis;\"'\n     EOH\n   end\n end\n+\n+include_recipe \"whats-fresh::_monkey_patch\"\n+\n+%w[ shared static media config ].each do |path|\n+  directory \"#{node['whats_fresh']['application_dir']}/#{path}\" do\n+    owner node['whats_fresh']['venv_owner']\n+    group node['whats_fresh']['venv_group']\n+\n+    mode '0755'\n+    recursive true\n+  end\n+end\n+\n+template \"#{node['whats_fresh']['application_dir']}/config/config.yml\" do\n+  source \"config.yml.erb\"\n+  owner node['whats_fresh']['venv_owner']\n+  group node['whats_fresh']['venv_group']\n+\n+  variables({\n+    :host     => pg['host'],\n+    :port     => pg['port'],\n+    :username => pg['user'],\n+    :password => pg['pass']\n+  })\n+end\n+\n+application 'whats_fresh' do\n+  path       node['whats_fresh']['application_dir']\n+  owner      node['whats_fresh']['venv_owner']\n+  group      node['whats_fresh']['venv_group']\n+  repository 'https://github.com/osu-cass/whats-fresh-api'\n+  revision   node['whats_fresh']['git_branch']\n+  migrate    true\n+\n+  django do\n+    requirements      'requirements.txt'\n+    debug             node['whats_fresh']['debug']\n+  end\n+\n+  gunicorn do\n+    app_module :django\n+    port 8080\n+    loglevel \"debug\"\n+  end\n+\n+  nginx_load_balancer do\n+    application_port 8080\n+    hosts ['localhost']","path":"recipes/default.rb","position":88,"original_position":88,"commit_id":"33506e9eacce6619ea126852c34b5ab63ccfbab4","original_commit_id":"33506e9eacce6619ea126852c34b5ab63ccfbab4","user":{"login":"jordane","id":342364,"avatar_url":"https://avatars.githubusercontent.com/u/342364?v=2","gravatar_id":"6575a1f2025e32430d152704b8bd5933","url":"https://api.github.com/users/jordane","html_url":"https://github.com/jordane","followers_url":"https://api.github.com/users/jordane/followers","following_url":"https://api.github.com/users/jordane/following{/other_user}","gists_url":"https://api.github.com/users/jordane/gists{/gist_id}","starred_url":"https://api.github.com/users/jordane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordane/subscriptions","organizations_url":"https://api.github.com/users/jordane/orgs","repos_url":"https://api.github.com/users/jordane/repos","events_url":"https://api.github.com/users/jordane/events{/privacy}","received_events_url":"https://api.github.com/users/jordane/received_events","type":"User","site_admin":false},"body":"This should probably be an attribute","created_at":"2014-09-19T21:45:04Z","updated_at":"2014-09-19T21:45:04Z","html_url":"https://github.com/osuosl-cookbooks/whats-fresh/pull/2#discussion_r17811353","pull_request_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls/comments/17811353"},"html":{"href":"https://github.com/osuosl-cookbooks/whats-fresh/pull/2#discussion_r17811353"},"pull_request":{"href":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls/2","id":21525180,"html_url":"https://github.com/osuosl-cookbooks/whats-fresh/pull/2","diff_url":"https://github.com/osuosl-cookbooks/whats-fresh/pull/2.diff","patch_url":"https://github.com/osuosl-cookbooks/whats-fresh/pull/2.patch","issue_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/issues/2","number":2,"state":"open","locked":false,"title":"Deploy application with nginx and application_python","user":{"login":"tschuy","id":6532435,"avatar_url":"https://avatars.githubusercontent.com/u/6532435?v=2","gravatar_id":"b71fb5573d51eb37eefd71e5b9c56344","url":"https://api.github.com/users/tschuy","html_url":"https://github.com/tschuy","followers_url":"https://api.github.com/users/tschuy/followers","following_url":"https://api.github.com/users/tschuy/following{/other_user}","gists_url":"https://api.github.com/users/tschuy/gists{/gist_id}","starred_url":"https://api.github.com/users/tschuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschuy/subscriptions","organizations_url":"https://api.github.com/users/tschuy/orgs","repos_url":"https://api.github.com/users/tschuy/repos","events_url":"https://api.github.com/users/tschuy/events{/privacy}","received_events_url":"https://api.github.com/users/tschuy/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-09-19T21:31:40Z","updated_at":"2014-09-19T21:45:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d778c2094737ba22220ee2c195b03dec90ccce14","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls/2/commits","review_comments_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls/2/comments","review_comment_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls/comments/{number}","comments_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/issues/2/comments","statuses_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/statuses/33506e9eacce6619ea126852c34b5ab63ccfbab4","head":{"label":"osuosl-cookbooks:app_deployment","ref":"app_deployment","sha":"33506e9eacce6619ea126852c34b5ab63ccfbab4","user":{"login":"osuosl-cookbooks","id":5317541,"avatar_url":"https://avatars.githubusercontent.com/u/5317541?v=2","gravatar_id":"22846c945079a8cb152dfbebca369307","url":"https://api.github.com/users/osuosl-cookbooks","html_url":"https://github.com/osuosl-cookbooks","followers_url":"https://api.github.com/users/osuosl-cookbooks/followers","following_url":"https://api.github.com/users/osuosl-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/osuosl-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/osuosl-cookbooks/orgs","repos_url":"https://api.github.com/users/osuosl-cookbooks/repos","events_url":"https://api.github.com/users/osuosl-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl-cookbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":22479319,"name":"whats-fresh","full_name":"osuosl-cookbooks/whats-fresh","owner":{"login":"osuosl-cookbooks","id":5317541,"avatar_url":"https://avatars.githubusercontent.com/u/5317541?v=2","gravatar_id":"22846c945079a8cb152dfbebca369307","url":"https://api.github.com/users/osuosl-cookbooks","html_url":"https://github.com/osuosl-cookbooks","followers_url":"https://api.github.com/users/osuosl-cookbooks/followers","following_url":"https://api.github.com/users/osuosl-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/osuosl-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/osuosl-cookbooks/orgs","repos_url":"https://api.github.com/users/osuosl-cookbooks/repos","events_url":"https://api.github.com/users/osuosl-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl-cookbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osuosl-cookbooks/whats-fresh","description":"Installs the Postgres and Postgis database necessary for the What's Fresh backend.","fork":false,"url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh","forks_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/forks","keys_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/teams","hooks_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/hooks","issue_events_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/issues/events{/number}","events_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/events","assignees_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/assignees{/user}","branches_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/branches{/branch}","tags_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/tags","blobs_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/git/refs{/sha}","trees_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/statuses/{sha}","languages_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/languages","stargazers_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/stargazers","contributors_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/contributors","subscribers_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/subscribers","subscription_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/subscription","commits_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/commits{/sha}","git_commits_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/git/commits{/sha}","comments_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/comments{/number}","issue_comment_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/issues/comments/{number}","contents_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/contents/{+path}","compare_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/merges","archive_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/downloads","issues_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/issues{/number}","pulls_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls{/number}","milestones_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/milestones{/number}","notifications_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/labels{/name}","releases_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/releases{/id}","created_at":"2014-07-31T18:01:42Z","updated_at":"2014-07-31T18:02:36Z","pushed_at":"2014-09-19T21:30:28Z","git_url":"git://github.com/osuosl-cookbooks/whats-fresh.git","ssh_url":"git@github.com:osuosl-cookbooks/whats-fresh.git","clone_url":"https://github.com/osuosl-cookbooks/whats-fresh.git","svn_url":"https://github.com/osuosl-cookbooks/whats-fresh","homepage":null,"size":388,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"osuosl-cookbooks:master","ref":"master","sha":"71ed9d0ecc5b152d3807881d3062e192f07de87f","user":{"login":"osuosl-cookbooks","id":5317541,"avatar_url":"https://avatars.githubusercontent.com/u/5317541?v=2","gravatar_id":"22846c945079a8cb152dfbebca369307","url":"https://api.github.com/users/osuosl-cookbooks","html_url":"https://github.com/osuosl-cookbooks","followers_url":"https://api.github.com/users/osuosl-cookbooks/followers","following_url":"https://api.github.com/users/osuosl-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/osuosl-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/osuosl-cookbooks/orgs","repos_url":"https://api.github.com/users/osuosl-cookbooks/repos","events_url":"https://api.github.com/users/osuosl-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl-cookbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":22479319,"name":"whats-fresh","full_name":"osuosl-cookbooks/whats-fresh","owner":{"login":"osuosl-cookbooks","id":5317541,"avatar_url":"https://avatars.githubusercontent.com/u/5317541?v=2","gravatar_id":"22846c945079a8cb152dfbebca369307","url":"https://api.github.com/users/osuosl-cookbooks","html_url":"https://github.com/osuosl-cookbooks","followers_url":"https://api.github.com/users/osuosl-cookbooks/followers","following_url":"https://api.github.com/users/osuosl-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/osuosl-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/osuosl-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuosl-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/osuosl-cookbooks/orgs","repos_url":"https://api.github.com/users/osuosl-cookbooks/repos","events_url":"https://api.github.com/users/osuosl-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/osuosl-cookbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osuosl-cookbooks/whats-fresh","description":"Installs the Postgres and Postgis database necessary for the What's Fresh backend.","fork":false,"url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh","forks_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/forks","keys_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/teams","hooks_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/hooks","issue_events_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/issues/events{/number}","events_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/events","assignees_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/assignees{/user}","branches_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/branches{/branch}","tags_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/tags","blobs_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/git/refs{/sha}","trees_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/statuses/{sha}","languages_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/languages","stargazers_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/stargazers","contributors_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/contributors","subscribers_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/subscribers","subscription_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/subscription","commits_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/commits{/sha}","git_commits_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/git/commits{/sha}","comments_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/comments{/number}","issue_comment_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/issues/comments/{number}","contents_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/contents/{+path}","compare_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/merges","archive_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/downloads","issues_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/issues{/number}","pulls_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls{/number}","milestones_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/milestones{/number}","notifications_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/labels{/name}","releases_url":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/releases{/id}","created_at":"2014-07-31T18:01:42Z","updated_at":"2014-07-31T18:02:36Z","pushed_at":"2014-09-19T21:30:28Z","git_url":"git://github.com/osuosl-cookbooks/whats-fresh.git","ssh_url":"git@github.com:osuosl-cookbooks/whats-fresh.git","clone_url":"https://github.com/osuosl-cookbooks/whats-fresh.git","svn_url":"https://github.com/osuosl-cookbooks/whats-fresh","homepage":null,"size":388,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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/osuosl-cookbooks/whats-fresh/pulls/2"},"html":{"href":"https://github.com/osuosl-cookbooks/whats-fresh/pull/2"},"issue":{"href":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/issues/2"},"comments":{"href":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/osuosl-cookbooks/whats-fresh/statuses/33506e9eacce6619ea126852c34b5ab63ccfbab4"}}}}