GitHub PullRequestReviewCommentEvent at 2014-06-12 16:12:21
Repository: congress-forms
Actor: kthayer424
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/NGPVAN/congress-forms/pulls/comments/13710177","id":13710177,"diff_hunk":"@@ -16,40 +16,54 @@ mysql-server-5.5 mysql-server/root_password password $mysql_root\n mysql-server-5.5 mysql-server/root_password_again password $mysql_root\n EOF\n \n-apt-get update\n-apt-get -y install $DEPENDENCIES\n+if [ $1 = \"vagrant\" ]; then\n+  apt-get update\n+  apt-get -y install $DEPENDENCIES\n+else\n+  sudo apt-get update\n+  sudo apt-get -y install $DEPENDENCIES\n+fi\n \n mysql -u root -p\"$mysql_root\" -e \"create database if not exists congress_forms_development;  GRANT ALL PRIVILEGES ON congress_forms_development.* TO 'congress_forms'@'localhost' IDENTIFIED BY '$mysql_congress_forms';\"\n mysql -u root -p\"$mysql_root\" -e \"create database if not exists congress_forms_test;  GRANT ALL PRIVILEGES ON congress_forms_test.* TO 'congress_forms'@'localhost';\"\n \n-cd /vagrant\n-\n+cd /$1\n cp -a config/database-example.rb config/database.rb\n cp -a config/congress-forms_config.rb.example config/congress-forms_config.rb\n \n sed -i \"s@^  :password.*@  :password => '$mysql_congress_forms',@\" config/database.rb\n \n-HOME=/home/vagrant sudo -u vagrant /bin/bash <<EOF\n+HOME=/home/$1 sudo -u $1 /bin/bash <<EOF\n echo \"Setting up RVM and Ruby...\"\n curl -sSL https://get.rvm.io | bash -s stable\n-source /home/vagrant/.rvm/scripts/rvm\n+source /home/$1/.rvm/scripts/rvm\n rvm install ruby-2.1.0\n \n cd .\n-gem install json -v '1.8.1'\n-bundle install\n-\n-echo \"Loading schema...\"\n-bundle exec rake ar:create ar:schema:load > /dev/null\n-echo \"Loading congress members...\"\n-bundle exec rake congress-forms:clone_git > /dev/null\n+if [ $1 = \"vagrant\" ]; then\n+  gem install json -v '1.8.1'\n+  sudo bundle install","path":"setup_dev.sh","position":43,"original_position":43,"commit_id":"5693089f4bf42ad5e20f2fd22058fa4747275211","original_commit_id":"5693089f4bf42ad5e20f2fd22058fa4747275211","user":{"login":"kthayer424","id":7291693,"avatar_url":"https://avatars.githubusercontent.com/u/7291693?","gravatar_id":"8a5fd0220ddb4f14d969ccb539a74bca","url":"https://api.github.com/users/kthayer424","html_url":"https://github.com/kthayer424","followers_url":"https://api.github.com/users/kthayer424/followers","following_url":"https://api.github.com/users/kthayer424/following{/other_user}","gists_url":"https://api.github.com/users/kthayer424/gists{/gist_id}","starred_url":"https://api.github.com/users/kthayer424/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kthayer424/subscriptions","organizations_url":"https://api.github.com/users/kthayer424/orgs","repos_url":"https://api.github.com/users/kthayer424/repos","events_url":"https://api.github.com/users/kthayer424/events{/privacy}","received_events_url":"https://api.github.com/users/kthayer424/received_events","type":"User","site_admin":false},"body":"I could actually just make a bigger if statement maybe that handles both cases, but it just gets closer to having two separate scripts. ","created_at":"2014-06-12T16:12:21Z","updated_at":"2014-06-12T16:12:21Z","html_url":"https://github.com/NGPVAN/congress-forms/pull/2#discussion_r13710177","pull_request_url":"https://api.github.com/repos/NGPVAN/congress-forms/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/NGPVAN/congress-forms/pulls/comments/13710177"},"html":{"href":"https://github.com/NGPVAN/congress-forms/pull/2#discussion_r13710177"},"pull_request":{"href":"https://api.github.com/repos/NGPVAN/congress-forms/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/NGPVAN/congress-forms/pulls/2","id":16959453,"html_url":"https://github.com/NGPVAN/congress-forms/pull/2","diff_url":"https://github.com/NGPVAN/congress-forms/pull/2.diff","patch_url":"https://github.com/NGPVAN/congress-forms/pull/2.patch","issue_url":"https://api.github.com/repos/NGPVAN/congress-forms/issues/2","number":2,"state":"open","title":"Adding automated AMI generation to EC2 with Ruby server start up script","user":{"login":"kthayer424","id":7291693,"avatar_url":"https://avatars.githubusercontent.com/u/7291693?","gravatar_id":"8a5fd0220ddb4f14d969ccb539a74bca","url":"https://api.github.com/users/kthayer424","html_url":"https://github.com/kthayer424","followers_url":"https://api.github.com/users/kthayer424/followers","following_url":"https://api.github.com/users/kthayer424/following{/other_user}","gists_url":"https://api.github.com/users/kthayer424/gists{/gist_id}","starred_url":"https://api.github.com/users/kthayer424/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kthayer424/subscriptions","organizations_url":"https://api.github.com/users/kthayer424/orgs","repos_url":"https://api.github.com/users/kthayer424/repos","events_url":"https://api.github.com/users/kthayer424/events{/privacy}","received_events_url":"https://api.github.com/users/kthayer424/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-06-10T19:17:05Z","updated_at":"2014-06-12T16:12:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4385f6c0ceda7cc38d9023adc69093579047e78e","assignee":{"login":"ngpvan-matkins","id":7293268,"avatar_url":"https://avatars.githubusercontent.com/u/7293268?","gravatar_id":"b2c8a39695b8179d0b454d1d52675619","url":"https://api.github.com/users/ngpvan-matkins","html_url":"https://github.com/ngpvan-matkins","followers_url":"https://api.github.com/users/ngpvan-matkins/followers","following_url":"https://api.github.com/users/ngpvan-matkins/following{/other_user}","gists_url":"https://api.github.com/users/ngpvan-matkins/gists{/gist_id}","starred_url":"https://api.github.com/users/ngpvan-matkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngpvan-matkins/subscriptions","organizations_url":"https://api.github.com/users/ngpvan-matkins/orgs","repos_url":"https://api.github.com/users/ngpvan-matkins/repos","events_url":"https://api.github.com/users/ngpvan-matkins/events{/privacy}","received_events_url":"https://api.github.com/users/ngpvan-matkins/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/NGPVAN/congress-forms/pulls/2/commits","review_comments_url":"https://api.github.com/repos/NGPVAN/congress-forms/pulls/2/comments","review_comment_url":"https://api.github.com/repos/NGPVAN/congress-forms/pulls/comments/{number}","comments_url":"https://api.github.com/repos/NGPVAN/congress-forms/issues/2/comments","statuses_url":"https://api.github.com/repos/NGPVAN/congress-forms/statuses/5693089f4bf42ad5e20f2fd22058fa4747275211","head":{"label":"NGPVAN:feature/auto-deploy","ref":"feature/auto-deploy","sha":"5693089f4bf42ad5e20f2fd22058fa4747275211","user":{"login":"NGPVAN","id":729820,"avatar_url":"https://avatars.githubusercontent.com/u/729820?","gravatar_id":"b2c8a39695b8179d0b454d1d52675619","url":"https://api.github.com/users/NGPVAN","html_url":"https://github.com/NGPVAN","followers_url":"https://api.github.com/users/NGPVAN/followers","following_url":"https://api.github.com/users/NGPVAN/following{/other_user}","gists_url":"https://api.github.com/users/NGPVAN/gists{/gist_id}","starred_url":"https://api.github.com/users/NGPVAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NGPVAN/subscriptions","organizations_url":"https://api.github.com/users/NGPVAN/orgs","repos_url":"https://api.github.com/users/NGPVAN/repos","events_url":"https://api.github.com/users/NGPVAN/events{/privacy}","received_events_url":"https://api.github.com/users/NGPVAN/received_events","type":"Organization","site_admin":false},"repo":{"id":19703995,"name":"congress-forms","full_name":"NGPVAN/congress-forms","owner":{"login":"NGPVAN","id":729820,"avatar_url":"https://avatars.githubusercontent.com/u/729820?","gravatar_id":"b2c8a39695b8179d0b454d1d52675619","url":"https://api.github.com/users/NGPVAN","html_url":"https://github.com/NGPVAN","followers_url":"https://api.github.com/users/NGPVAN/followers","following_url":"https://api.github.com/users/NGPVAN/following{/other_user}","gists_url":"https://api.github.com/users/NGPVAN/gists{/gist_id}","starred_url":"https://api.github.com/users/NGPVAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NGPVAN/subscriptions","organizations_url":"https://api.github.com/users/NGPVAN/orgs","repos_url":"https://api.github.com/users/NGPVAN/repos","events_url":"https://api.github.com/users/NGPVAN/events{/privacy}","received_events_url":"https://api.github.com/users/NGPVAN/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NGPVAN/congress-forms","description":"Generate and submit forms to congress","fork":true,"url":"https://api.github.com/repos/NGPVAN/congress-forms","forks_url":"https://api.github.com/repos/NGPVAN/congress-forms/forks","keys_url":"https://api.github.com/repos/NGPVAN/congress-forms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NGPVAN/congress-forms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NGPVAN/congress-forms/teams","hooks_url":"https://api.github.com/repos/NGPVAN/congress-forms/hooks","issue_events_url":"https://api.github.com/repos/NGPVAN/congress-forms/issues/events{/number}","events_url":"https://api.github.com/repos/NGPVAN/congress-forms/events","assignees_url":"https://api.github.com/repos/NGPVAN/congress-forms/assignees{/user}","branches_url":"https://api.github.com/repos/NGPVAN/congress-forms/branches{/branch}","tags_url":"https://api.github.com/repos/NGPVAN/congress-forms/tags","blobs_url":"https://api.github.com/repos/NGPVAN/congress-forms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NGPVAN/congress-forms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NGPVAN/congress-forms/git/refs{/sha}","trees_url":"https://api.github.com/repos/NGPVAN/congress-forms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NGPVAN/congress-forms/statuses/{sha}","languages_url":"https://api.github.com/repos/NGPVAN/congress-forms/languages","stargazers_url":"https://api.github.com/repos/NGPVAN/congress-forms/stargazers","contributors_url":"https://api.github.com/repos/NGPVAN/congress-forms/contributors","subscribers_url":"https://api.github.com/repos/NGPVAN/congress-forms/subscribers","subscription_url":"https://api.github.com/repos/NGPVAN/congress-forms/subscription","commits_url":"https://api.github.com/repos/NGPVAN/congress-forms/commits{/sha}","git_commits_url":"https://api.github.com/repos/NGPVAN/congress-forms/git/commits{/sha}","comments_url":"https://api.github.com/repos/NGPVAN/congress-forms/comments{/number}","issue_comment_url":"https://api.github.com/repos/NGPVAN/congress-forms/issues/comments/{number}","contents_url":"https://api.github.com/repos/NGPVAN/congress-forms/contents/{+path}","compare_url":"https://api.github.com/repos/NGPVAN/congress-forms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NGPVAN/congress-forms/merges","archive_url":"https://api.github.com/repos/NGPVAN/congress-forms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NGPVAN/congress-forms/downloads","issues_url":"https://api.github.com/repos/NGPVAN/congress-forms/issues{/number}","pulls_url":"https://api.github.com/repos/NGPVAN/congress-forms/pulls{/number}","milestones_url":"https://api.github.com/repos/NGPVAN/congress-forms/milestones{/number}","notifications_url":"https://api.github.com/repos/NGPVAN/congress-forms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NGPVAN/congress-forms/labels{/name}","releases_url":"https://api.github.com/repos/NGPVAN/congress-forms/releases{/id}","created_at":"2014-05-12T15:24:56Z","updated_at":"2014-06-12T15:52:28Z","pushed_at":"2014-06-12T15:52:31Z","git_url":"git://github.com/NGPVAN/congress-forms.git","ssh_url":"git@github.com:NGPVAN/congress-forms.git","clone_url":"https://github.com/NGPVAN/congress-forms.git","svn_url":"https://github.com/NGPVAN/congress-forms","homepage":null,"size":661,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"NGPVAN:master","ref":"master","sha":"af1bbf4670da22ea56836ee8d90df0f33d9b0eb0","user":{"login":"NGPVAN","id":729820,"avatar_url":"https://avatars.githubusercontent.com/u/729820?","gravatar_id":"b2c8a39695b8179d0b454d1d52675619","url":"https://api.github.com/users/NGPVAN","html_url":"https://github.com/NGPVAN","followers_url":"https://api.github.com/users/NGPVAN/followers","following_url":"https://api.github.com/users/NGPVAN/following{/other_user}","gists_url":"https://api.github.com/users/NGPVAN/gists{/gist_id}","starred_url":"https://api.github.com/users/NGPVAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NGPVAN/subscriptions","organizations_url":"https://api.github.com/users/NGPVAN/orgs","repos_url":"https://api.github.com/users/NGPVAN/repos","events_url":"https://api.github.com/users/NGPVAN/events{/privacy}","received_events_url":"https://api.github.com/users/NGPVAN/received_events","type":"Organization","site_admin":false},"repo":{"id":19703995,"name":"congress-forms","full_name":"NGPVAN/congress-forms","owner":{"login":"NGPVAN","id":729820,"avatar_url":"https://avatars.githubusercontent.com/u/729820?","gravatar_id":"b2c8a39695b8179d0b454d1d52675619","url":"https://api.github.com/users/NGPVAN","html_url":"https://github.com/NGPVAN","followers_url":"https://api.github.com/users/NGPVAN/followers","following_url":"https://api.github.com/users/NGPVAN/following{/other_user}","gists_url":"https://api.github.com/users/NGPVAN/gists{/gist_id}","starred_url":"https://api.github.com/users/NGPVAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NGPVAN/subscriptions","organizations_url":"https://api.github.com/users/NGPVAN/orgs","repos_url":"https://api.github.com/users/NGPVAN/repos","events_url":"https://api.github.com/users/NGPVAN/events{/privacy}","received_events_url":"https://api.github.com/users/NGPVAN/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NGPVAN/congress-forms","description":"Generate and submit forms to congress","fork":true,"url":"https://api.github.com/repos/NGPVAN/congress-forms","forks_url":"https://api.github.com/repos/NGPVAN/congress-forms/forks","keys_url":"https://api.github.com/repos/NGPVAN/congress-forms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NGPVAN/congress-forms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NGPVAN/congress-forms/teams","hooks_url":"https://api.github.com/repos/NGPVAN/congress-forms/hooks","issue_events_url":"https://api.github.com/repos/NGPVAN/congress-forms/issues/events{/number}","events_url":"https://api.github.com/repos/NGPVAN/congress-forms/events","assignees_url":"https://api.github.com/repos/NGPVAN/congress-forms/assignees{/user}","branches_url":"https://api.github.com/repos/NGPVAN/congress-forms/branches{/branch}","tags_url":"https://api.github.com/repos/NGPVAN/congress-forms/tags","blobs_url":"https://api.github.com/repos/NGPVAN/congress-forms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NGPVAN/congress-forms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NGPVAN/congress-forms/git/refs{/sha}","trees_url":"https://api.github.com/repos/NGPVAN/congress-forms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NGPVAN/congress-forms/statuses/{sha}","languages_url":"https://api.github.com/repos/NGPVAN/congress-forms/languages","stargazers_url":"https://api.github.com/repos/NGPVAN/congress-forms/stargazers","contributors_url":"https://api.github.com/repos/NGPVAN/congress-forms/contributors","subscribers_url":"https://api.github.com/repos/NGPVAN/congress-forms/subscribers","subscription_url":"https://api.github.com/repos/NGPVAN/congress-forms/subscription","commits_url":"https://api.github.com/repos/NGPVAN/congress-forms/commits{/sha}","git_commits_url":"https://api.github.com/repos/NGPVAN/congress-forms/git/commits{/sha}","comments_url":"https://api.github.com/repos/NGPVAN/congress-forms/comments{/number}","issue_comment_url":"https://api.github.com/repos/NGPVAN/congress-forms/issues/comments/{number}","contents_url":"https://api.github.com/repos/NGPVAN/congress-forms/contents/{+path}","compare_url":"https://api.github.com/repos/NGPVAN/congress-forms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NGPVAN/congress-forms/merges","archive_url":"https://api.github.com/repos/NGPVAN/congress-forms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NGPVAN/congress-forms/downloads","issues_url":"https://api.github.com/repos/NGPVAN/congress-forms/issues{/number}","pulls_url":"https://api.github.com/repos/NGPVAN/congress-forms/pulls{/number}","milestones_url":"https://api.github.com/repos/NGPVAN/congress-forms/milestones{/number}","notifications_url":"https://api.github.com/repos/NGPVAN/congress-forms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NGPVAN/congress-forms/labels{/name}","releases_url":"https://api.github.com/repos/NGPVAN/congress-forms/releases{/id}","created_at":"2014-05-12T15:24:56Z","updated_at":"2014-06-12T15:52:28Z","pushed_at":"2014-06-12T15:52:31Z","git_url":"git://github.com/NGPVAN/congress-forms.git","ssh_url":"git@github.com:NGPVAN/congress-forms.git","clone_url":"https://github.com/NGPVAN/congress-forms.git","svn_url":"https://github.com/NGPVAN/congress-forms","homepage":null,"size":661,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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/NGPVAN/congress-forms/pulls/2"},"html":{"href":"https://github.com/NGPVAN/congress-forms/pull/2"},"issue":{"href":"https://api.github.com/repos/NGPVAN/congress-forms/issues/2"},"comments":{"href":"https://api.github.com/repos/NGPVAN/congress-forms/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/NGPVAN/congress-forms/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/NGPVAN/congress-forms/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/NGPVAN/congress-forms/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/NGPVAN/congress-forms/statuses/5693089f4bf42ad5e20f2fd22058fa4747275211"}}}}