{"action":"created","comment":{"url":"https://api.github.com/repos/Originate/exo-deploy/pulls/comments/89168386","pull_request_review_id":9716864,"id":89168386,"diff_hunk":"@@ -41,4 +42,35 @@ class AwsDeployer\n         ..apply!\n \n \n+  _verify-remote-store: (done) ~>\n+    @s3 = new Aws.S3 do\n+      apiVersion: '2006-03-01'\n+      region: @aws-config.region\n+      access-key-id: process.env.AWS_ACCESS_KEY\n+      secret-access-key: process.env.AWS_SECRET_KEY\n+    @_has-bucket @aws-config['remote-state-store'], (has-bucket) ~>\n+      unless has-bucket\n+        then @_create-remote-store done\n+        else done!\n+\n+\n+  _create-remote-store: (done) ->\n+    @s3\n+      ..create-bucket {Bucket: @aws-config['remote-state-store'], CreateBucketConfiguration: LocationConstraint: \"#{@aws-config.region}\" }, (err, data) ~>","path":"src/deployers/aws-deployer.ls","position":47,"original_position":47,"commit_id":"ea3a18b642e1afd1f447048d9342569888773526","original_commit_id":"ea3a18b642e1afd1f447048d9342569888773526","user":{"login":"alexdavid","id":751581,"avatar_url":"https://avatars.githubusercontent.com/u/751581?v=3","gravatar_id":"","url":"https://api.github.com/users/alexdavid","html_url":"https://github.com/alexdavid","followers_url":"https://api.github.com/users/alexdavid/followers","following_url":"https://api.github.com/users/alexdavid/following{/other_user}","gists_url":"https://api.github.com/users/alexdavid/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdavid/subscriptions","organizations_url":"https://api.github.com/users/alexdavid/orgs","repos_url":"https://api.github.com/users/alexdavid/repos","events_url":"https://api.github.com/users/alexdavid/events{/privacy}","received_events_url":"https://api.github.com/users/alexdavid/received_events","type":"User","site_admin":false},"body":"Nitpicking, but there's an extra space at the end of this object. Also, I'm not sure if we need these curlies at all\r\n\r\nWhat do you think about this:\r\n```livescript\r\n..create-bucket Bucket: @aws-config['remote-state-store'], CreateBucketConfiguration: LocationConstraint: \"#{@aws-config.region}\", (err, data) ~>\r\n```","created_at":"2016-11-22T17:29:48Z","updated_at":"2016-11-22T17:29:48Z","html_url":"https://github.com/Originate/exo-deploy/pull/6#discussion_r89168386","pull_request_url":"https://api.github.com/repos/Originate/exo-deploy/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/Originate/exo-deploy/pulls/comments/89168386"},"html":{"href":"https://github.com/Originate/exo-deploy/pull/6#discussion_r89168386"},"pull_request":{"href":"https://api.github.com/repos/Originate/exo-deploy/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/Originate/exo-deploy/pulls/6","id":94726458,"html_url":"https://github.com/Originate/exo-deploy/pull/6","diff_url":"https://github.com/Originate/exo-deploy/pull/6.diff","patch_url":"https://github.com/Originate/exo-deploy/pull/6.patch","issue_url":"https://api.github.com/repos/Originate/exo-deploy/issues/6","number":6,"state":"open","locked":false,"title":"Create S3 bucket","user":{"login":"hugobho","id":7258240,"avatar_url":"https://avatars.githubusercontent.com/u/7258240?v=3","gravatar_id":"","url":"https://api.github.com/users/hugobho","html_url":"https://github.com/hugobho","followers_url":"https://api.github.com/users/hugobho/followers","following_url":"https://api.github.com/users/hugobho/following{/other_user}","gists_url":"https://api.github.com/users/hugobho/gists{/gist_id}","starred_url":"https://api.github.com/users/hugobho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugobho/subscriptions","organizations_url":"https://api.github.com/users/hugobho/orgs","repos_url":"https://api.github.com/users/hugobho/repos","events_url":"https://api.github.com/users/hugobho/events{/privacy}","received_events_url":"https://api.github.com/users/hugobho/received_events","type":"User","site_admin":false},"body":"Creates S3 bucket to store remote state file if it doesn't already exist","created_at":"2016-11-22T00:37:40Z","updated_at":"2016-11-22T17:31:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c16e863d0043edc7527b59c588bb552deb9774eb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Originate/exo-deploy/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Originate/exo-deploy/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Originate/exo-deploy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Originate/exo-deploy/issues/6/comments","statuses_url":"https://api.github.com/repos/Originate/exo-deploy/statuses/ea3a18b642e1afd1f447048d9342569888773526","head":{"label":"Originate:hh-s3-setup","ref":"hh-s3-setup","sha":"ea3a18b642e1afd1f447048d9342569888773526","user":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"repo":{"id":59527644,"name":"exo-deploy","full_name":"Originate/exo-deploy","owner":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Originate/exo-deploy","description":null,"fork":false,"url":"https://api.github.com/repos/Originate/exo-deploy","forks_url":"https://api.github.com/repos/Originate/exo-deploy/forks","keys_url":"https://api.github.com/repos/Originate/exo-deploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Originate/exo-deploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Originate/exo-deploy/teams","hooks_url":"https://api.github.com/repos/Originate/exo-deploy/hooks","issue_events_url":"https://api.github.com/repos/Originate/exo-deploy/issues/events{/number}","events_url":"https://api.github.com/repos/Originate/exo-deploy/events","assignees_url":"https://api.github.com/repos/Originate/exo-deploy/assignees{/user}","branches_url":"https://api.github.com/repos/Originate/exo-deploy/branches{/branch}","tags_url":"https://api.github.com/repos/Originate/exo-deploy/tags","blobs_url":"https://api.github.com/repos/Originate/exo-deploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Originate/exo-deploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Originate/exo-deploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Originate/exo-deploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Originate/exo-deploy/statuses/{sha}","languages_url":"https://api.github.com/repos/Originate/exo-deploy/languages","stargazers_url":"https://api.github.com/repos/Originate/exo-deploy/stargazers","contributors_url":"https://api.github.com/repos/Originate/exo-deploy/contributors","subscribers_url":"https://api.github.com/repos/Originate/exo-deploy/subscribers","subscription_url":"https://api.github.com/repos/Originate/exo-deploy/subscription","commits_url":"https://api.github.com/repos/Originate/exo-deploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Originate/exo-deploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Originate/exo-deploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Originate/exo-deploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Originate/exo-deploy/contents/{+path}","compare_url":"https://api.github.com/repos/Originate/exo-deploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Originate/exo-deploy/merges","archive_url":"https://api.github.com/repos/Originate/exo-deploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Originate/exo-deploy/downloads","issues_url":"https://api.github.com/repos/Originate/exo-deploy/issues{/number}","pulls_url":"https://api.github.com/repos/Originate/exo-deploy/pulls{/number}","milestones_url":"https://api.github.com/repos/Originate/exo-deploy/milestones{/number}","notifications_url":"https://api.github.com/repos/Originate/exo-deploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Originate/exo-deploy/labels{/name}","releases_url":"https://api.github.com/repos/Originate/exo-deploy/releases{/id}","deployments_url":"https://api.github.com/repos/Originate/exo-deploy/deployments","created_at":"2016-05-24T00:28:29Z","updated_at":"2016-11-22T01:49:34Z","pushed_at":"2016-11-22T02:54:23Z","git_url":"git://github.com/Originate/exo-deploy.git","ssh_url":"git@github.com:Originate/exo-deploy.git","clone_url":"https://github.com/Originate/exo-deploy.git","svn_url":"https://github.com/Originate/exo-deploy","homepage":null,"size":46,"stargazers_count":1,"watchers_count":1,"language":"HCL","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"Originate:hh-s3-store","ref":"hh-s3-store","sha":"fdc3bce6299cdf171707a506ae38fd73b7894d9a","user":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"repo":{"id":59527644,"name":"exo-deploy","full_name":"Originate/exo-deploy","owner":{"login":"Originate","id":1627168,"avatar_url":"https://avatars.githubusercontent.com/u/1627168?v=3","gravatar_id":"","url":"https://api.github.com/users/Originate","html_url":"https://github.com/Originate","followers_url":"https://api.github.com/users/Originate/followers","following_url":"https://api.github.com/users/Originate/following{/other_user}","gists_url":"https://api.github.com/users/Originate/gists{/gist_id}","starred_url":"https://api.github.com/users/Originate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Originate/subscriptions","organizations_url":"https://api.github.com/users/Originate/orgs","repos_url":"https://api.github.com/users/Originate/repos","events_url":"https://api.github.com/users/Originate/events{/privacy}","received_events_url":"https://api.github.com/users/Originate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Originate/exo-deploy","description":null,"fork":false,"url":"https://api.github.com/repos/Originate/exo-deploy","forks_url":"https://api.github.com/repos/Originate/exo-deploy/forks","keys_url":"https://api.github.com/repos/Originate/exo-deploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Originate/exo-deploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Originate/exo-deploy/teams","hooks_url":"https://api.github.com/repos/Originate/exo-deploy/hooks","issue_events_url":"https://api.github.com/repos/Originate/exo-deploy/issues/events{/number}","events_url":"https://api.github.com/repos/Originate/exo-deploy/events","assignees_url":"https://api.github.com/repos/Originate/exo-deploy/assignees{/user}","branches_url":"https://api.github.com/repos/Originate/exo-deploy/branches{/branch}","tags_url":"https://api.github.com/repos/Originate/exo-deploy/tags","blobs_url":"https://api.github.com/repos/Originate/exo-deploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Originate/exo-deploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Originate/exo-deploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Originate/exo-deploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Originate/exo-deploy/statuses/{sha}","languages_url":"https://api.github.com/repos/Originate/exo-deploy/languages","stargazers_url":"https://api.github.com/repos/Originate/exo-deploy/stargazers","contributors_url":"https://api.github.com/repos/Originate/exo-deploy/contributors","subscribers_url":"https://api.github.com/repos/Originate/exo-deploy/subscribers","subscription_url":"https://api.github.com/repos/Originate/exo-deploy/subscription","commits_url":"https://api.github.com/repos/Originate/exo-deploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Originate/exo-deploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Originate/exo-deploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Originate/exo-deploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Originate/exo-deploy/contents/{+path}","compare_url":"https://api.github.com/repos/Originate/exo-deploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Originate/exo-deploy/merges","archive_url":"https://api.github.com/repos/Originate/exo-deploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Originate/exo-deploy/downloads","issues_url":"https://api.github.com/repos/Originate/exo-deploy/issues{/number}","pulls_url":"https://api.github.com/repos/Originate/exo-deploy/pulls{/number}","milestones_url":"https://api.github.com/repos/Originate/exo-deploy/milestones{/number}","notifications_url":"https://api.github.com/repos/Originate/exo-deploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Originate/exo-deploy/labels{/name}","releases_url":"https://api.github.com/repos/Originate/exo-deploy/releases{/id}","deployments_url":"https://api.github.com/repos/Originate/exo-deploy/deployments","created_at":"2016-05-24T00:28:29Z","updated_at":"2016-11-22T01:49:34Z","pushed_at":"2016-11-22T02:54:23Z","git_url":"git://github.com/Originate/exo-deploy.git","ssh_url":"git@github.com:Originate/exo-deploy.git","clone_url":"https://github.com/Originate/exo-deploy.git","svn_url":"https://github.com/Originate/exo-deploy","homepage":null,"size":46,"stargazers_count":1,"watchers_count":1,"language":"HCL","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Originate/exo-deploy/pulls/6"},"html":{"href":"https://github.com/Originate/exo-deploy/pull/6"},"issue":{"href":"https://api.github.com/repos/Originate/exo-deploy/issues/6"},"comments":{"href":"https://api.github.com/repos/Originate/exo-deploy/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Originate/exo-deploy/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Originate/exo-deploy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Originate/exo-deploy/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Originate/exo-deploy/statuses/ea3a18b642e1afd1f447048d9342569888773526"}}}}
{"actor":{"display_login":"alexdavid"}}