{"action":"created","comment":{"url":"https://api.github.com/repos/krux/hyperion/pulls/comments/84397535","pull_request_review_id":5179041,"id":84397535,"diff_hunk":"@@ -0,0 +1,79 @@\n+package com.krux.hyperion.activity\n+\n+import com.krux.hyperion.adt.{HBoolean, HS3Uri, HString}\n+import com.krux.hyperion.common.{BaseFields, PipelineObjectId}\n+import com.krux.hyperion.resource.{Ec2Resource, Resource}\n+import com.krux.hyperion.expression.RunnableObject\n+\n+case class AwsS3CpActivity private(\n+  baseFields: BaseFields,\n+  activityFields: ActivityFields[Ec2Resource],\n+  shellCommandActivityFields: ShellCommandActivityFields,\n+  sourceS3Path: HS3Uri,\n+  destinationS3Path: HS3Uri,\n+  isRecursive: HBoolean,\n+  isOverwrite: HBoolean,\n+  additionalArguments: Seq[HString]\n+) extends BaseShellCommandActivity with WithS3Input {\n+\n+  type Self = AwsS3CpActivity\n+\n+  def updateBaseFields(fields: BaseFields) = copy(baseFields = fields)\n+  def updateActivityFields(fields: ActivityFields[Ec2Resource]) = copy(activityFields = fields)\n+  def updateShellCommandActivityFields(fields: ShellCommandActivityFields) = copy(shellCommandActivityFields = fields)\n+\n+  def withOverwrite() = copy(isOverwrite = HBoolean.True)\n+  def withRecursive() = addToAdditionArguments(Seq[HString](\"--recursive\"))\n+  def withProfile(profile: HString) =  addToAdditionArguments(Seq[HString](\"--profile\", profile))\n+  def withAcl(cannedAcl: HString) = addToAdditionArguments(Seq[HString](\"--acl\",cannedAcl))\n+  def withExclude(pattern: HString) = addToAdditionArguments(Seq[HString](\"--exclude\", pattern))\n+  def withInclude(pattern: HString) = addToAdditionArguments(Seq[HString](\"--include\", pattern))\n+  def withSourceRegion(sourceRegion: HString) = addToAdditionArguments(Seq[HString](\"--source-region\", sourceRegion))\n+  def withDestinationRegion(destinationRegion: HString) = addToAdditionArguments(Seq[HString](\"--region\", destinationRegion))\n+  def withGrant(permission: HString, granteeTypeAndId: Seq[(String, String)]) = {\n+    addToAdditionArguments(\n+      Seq[HString](\"--grants\",\n+        Seq(permission, granteeTypeAndId.map { tuple => tuple.productIterator.mkString(\"=\") }.mkString(\",\")).mkString(\"=\")","path":"contrib/activity/definition/src/main/scala/com/krux/hyperion/activity/AwsS3CpActivity.scala","position":36,"original_position":36,"commit_id":"25ce0615ef29ada8aed36a1b62682e73a457c943","original_commit_id":"25ce0615ef29ada8aed36a1b62682e73a457c943","user":{"login":"sethyates","id":29878,"avatar_url":"https://avatars.githubusercontent.com/u/29878?v=3","gravatar_id":"","url":"https://api.github.com/users/sethyates","html_url":"https://github.com/sethyates","followers_url":"https://api.github.com/users/sethyates/followers","following_url":"https://api.github.com/users/sethyates/following{/other_user}","gists_url":"https://api.github.com/users/sethyates/gists{/gist_id}","starred_url":"https://api.github.com/users/sethyates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethyates/subscriptions","organizations_url":"https://api.github.com/users/sethyates/orgs","repos_url":"https://api.github.com/users/sethyates/repos","events_url":"https://api.github.com/users/sethyates/events{/privacy}","received_events_url":"https://api.github.com/users/sethyates/received_events","type":"User","site_admin":false},"body":"This doesn't seem to be the clearest way to do this.  Please re-evaluate it.","created_at":"2016-10-20T23:43:46Z","updated_at":"2016-10-20T23:45:34Z","html_url":"https://github.com/krux/hyperion/pull/471#discussion_r84397535","pull_request_url":"https://api.github.com/repos/krux/hyperion/pulls/471","_links":{"self":{"href":"https://api.github.com/repos/krux/hyperion/pulls/comments/84397535"},"html":{"href":"https://github.com/krux/hyperion/pull/471#discussion_r84397535"},"pull_request":{"href":"https://api.github.com/repos/krux/hyperion/pulls/471"}}},"pull_request":{"url":"https://api.github.com/repos/krux/hyperion/pulls/471","id":89922707,"html_url":"https://github.com/krux/hyperion/pull/471","diff_url":"https://github.com/krux/hyperion/pull/471.diff","patch_url":"https://github.com/krux/hyperion/pull/471.patch","issue_url":"https://api.github.com/repos/krux/hyperion/issues/471","number":471,"state":"open","locked":false,"title":"WIP: adds aws cp with profile activity","user":{"login":"pkhetrapal","id":12616990,"avatar_url":"https://avatars.githubusercontent.com/u/12616990?v=3","gravatar_id":"","url":"https://api.github.com/users/pkhetrapal","html_url":"https://github.com/pkhetrapal","followers_url":"https://api.github.com/users/pkhetrapal/followers","following_url":"https://api.github.com/users/pkhetrapal/following{/other_user}","gists_url":"https://api.github.com/users/pkhetrapal/gists{/gist_id}","starred_url":"https://api.github.com/users/pkhetrapal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkhetrapal/subscriptions","organizations_url":"https://api.github.com/users/pkhetrapal/orgs","repos_url":"https://api.github.com/users/pkhetrapal/repos","events_url":"https://api.github.com/users/pkhetrapal/events{/privacy}","received_events_url":"https://api.github.com/users/pkhetrapal/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-19T00:25:50Z","updated_at":"2016-10-20T23:45:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4881d37a27546faccaf2442189c55a81bad6a062","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/krux/hyperion/pulls/471/commits","review_comments_url":"https://api.github.com/repos/krux/hyperion/pulls/471/comments","review_comment_url":"https://api.github.com/repos/krux/hyperion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krux/hyperion/issues/471/comments","statuses_url":"https://api.github.com/repos/krux/hyperion/statuses/25ce0615ef29ada8aed36a1b62682e73a457c943","head":{"label":"pkhetrapal:aws_cp_with_profile_activity","ref":"aws_cp_with_profile_activity","sha":"25ce0615ef29ada8aed36a1b62682e73a457c943","user":{"login":"pkhetrapal","id":12616990,"avatar_url":"https://avatars.githubusercontent.com/u/12616990?v=3","gravatar_id":"","url":"https://api.github.com/users/pkhetrapal","html_url":"https://github.com/pkhetrapal","followers_url":"https://api.github.com/users/pkhetrapal/followers","following_url":"https://api.github.com/users/pkhetrapal/following{/other_user}","gists_url":"https://api.github.com/users/pkhetrapal/gists{/gist_id}","starred_url":"https://api.github.com/users/pkhetrapal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkhetrapal/subscriptions","organizations_url":"https://api.github.com/users/pkhetrapal/orgs","repos_url":"https://api.github.com/users/pkhetrapal/repos","events_url":"https://api.github.com/users/pkhetrapal/events{/privacy}","received_events_url":"https://api.github.com/users/pkhetrapal/received_events","type":"User","site_admin":false},"repo":{"id":71302462,"name":"hyperion","full_name":"pkhetrapal/hyperion","owner":{"login":"pkhetrapal","id":12616990,"avatar_url":"https://avatars.githubusercontent.com/u/12616990?v=3","gravatar_id":"","url":"https://api.github.com/users/pkhetrapal","html_url":"https://github.com/pkhetrapal","followers_url":"https://api.github.com/users/pkhetrapal/followers","following_url":"https://api.github.com/users/pkhetrapal/following{/other_user}","gists_url":"https://api.github.com/users/pkhetrapal/gists{/gist_id}","starred_url":"https://api.github.com/users/pkhetrapal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkhetrapal/subscriptions","organizations_url":"https://api.github.com/users/pkhetrapal/orgs","repos_url":"https://api.github.com/users/pkhetrapal/repos","events_url":"https://api.github.com/users/pkhetrapal/events{/privacy}","received_events_url":"https://api.github.com/users/pkhetrapal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pkhetrapal/hyperion","description":"Scala library and abstractions for AWS DataPipeline","fork":true,"url":"https://api.github.com/repos/pkhetrapal/hyperion","forks_url":"https://api.github.com/repos/pkhetrapal/hyperion/forks","keys_url":"https://api.github.com/repos/pkhetrapal/hyperion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pkhetrapal/hyperion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pkhetrapal/hyperion/teams","hooks_url":"https://api.github.com/repos/pkhetrapal/hyperion/hooks","issue_events_url":"https://api.github.com/repos/pkhetrapal/hyperion/issues/events{/number}","events_url":"https://api.github.com/repos/pkhetrapal/hyperion/events","assignees_url":"https://api.github.com/repos/pkhetrapal/hyperion/assignees{/user}","branches_url":"https://api.github.com/repos/pkhetrapal/hyperion/branches{/branch}","tags_url":"https://api.github.com/repos/pkhetrapal/hyperion/tags","blobs_url":"https://api.github.com/repos/pkhetrapal/hyperion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pkhetrapal/hyperion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pkhetrapal/hyperion/git/refs{/sha}","trees_url":"https://api.github.com/repos/pkhetrapal/hyperion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pkhetrapal/hyperion/statuses/{sha}","languages_url":"https://api.github.com/repos/pkhetrapal/hyperion/languages","stargazers_url":"https://api.github.com/repos/pkhetrapal/hyperion/stargazers","contributors_url":"https://api.github.com/repos/pkhetrapal/hyperion/contributors","subscribers_url":"https://api.github.com/repos/pkhetrapal/hyperion/subscribers","subscription_url":"https://api.github.com/repos/pkhetrapal/hyperion/subscription","commits_url":"https://api.github.com/repos/pkhetrapal/hyperion/commits{/sha}","git_commits_url":"https://api.github.com/repos/pkhetrapal/hyperion/git/commits{/sha}","comments_url":"https://api.github.com/repos/pkhetrapal/hyperion/comments{/number}","issue_comment_url":"https://api.github.com/repos/pkhetrapal/hyperion/issues/comments{/number}","contents_url":"https://api.github.com/repos/pkhetrapal/hyperion/contents/{+path}","compare_url":"https://api.github.com/repos/pkhetrapal/hyperion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pkhetrapal/hyperion/merges","archive_url":"https://api.github.com/repos/pkhetrapal/hyperion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pkhetrapal/hyperion/downloads","issues_url":"https://api.github.com/repos/pkhetrapal/hyperion/issues{/number}","pulls_url":"https://api.github.com/repos/pkhetrapal/hyperion/pulls{/number}","milestones_url":"https://api.github.com/repos/pkhetrapal/hyperion/milestones{/number}","notifications_url":"https://api.github.com/repos/pkhetrapal/hyperion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pkhetrapal/hyperion/labels{/name}","releases_url":"https://api.github.com/repos/pkhetrapal/hyperion/releases{/id}","deployments_url":"https://api.github.com/repos/pkhetrapal/hyperion/deployments","created_at":"2016-10-19T00:15:25Z","updated_at":"2016-10-19T00:15:27Z","pushed_at":"2016-10-20T23:35:01Z","git_url":"git://github.com/pkhetrapal/hyperion.git","ssh_url":"git@github.com:pkhetrapal/hyperion.git","clone_url":"https://github.com/pkhetrapal/hyperion.git","svn_url":"https://github.com/pkhetrapal/hyperion","homepage":"","size":2908,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"krux:master","ref":"master","sha":"4651d8aca0e840c1a100b5629d54baa6fa7a0620","user":{"login":"krux","id":72871,"avatar_url":"https://avatars.githubusercontent.com/u/72871?v=3","gravatar_id":"","url":"https://api.github.com/users/krux","html_url":"https://github.com/krux","followers_url":"https://api.github.com/users/krux/followers","following_url":"https://api.github.com/users/krux/following{/other_user}","gists_url":"https://api.github.com/users/krux/gists{/gist_id}","starred_url":"https://api.github.com/users/krux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krux/subscriptions","organizations_url":"https://api.github.com/users/krux/orgs","repos_url":"https://api.github.com/users/krux/repos","events_url":"https://api.github.com/users/krux/events{/privacy}","received_events_url":"https://api.github.com/users/krux/received_events","type":"Organization","site_admin":false},"repo":{"id":32839544,"name":"hyperion","full_name":"krux/hyperion","owner":{"login":"krux","id":72871,"avatar_url":"https://avatars.githubusercontent.com/u/72871?v=3","gravatar_id":"","url":"https://api.github.com/users/krux","html_url":"https://github.com/krux","followers_url":"https://api.github.com/users/krux/followers","following_url":"https://api.github.com/users/krux/following{/other_user}","gists_url":"https://api.github.com/users/krux/gists{/gist_id}","starred_url":"https://api.github.com/users/krux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krux/subscriptions","organizations_url":"https://api.github.com/users/krux/orgs","repos_url":"https://api.github.com/users/krux/repos","events_url":"https://api.github.com/users/krux/events{/privacy}","received_events_url":"https://api.github.com/users/krux/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/krux/hyperion","description":"Scala library and abstractions for AWS DataPipeline","fork":false,"url":"https://api.github.com/repos/krux/hyperion","forks_url":"https://api.github.com/repos/krux/hyperion/forks","keys_url":"https://api.github.com/repos/krux/hyperion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krux/hyperion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krux/hyperion/teams","hooks_url":"https://api.github.com/repos/krux/hyperion/hooks","issue_events_url":"https://api.github.com/repos/krux/hyperion/issues/events{/number}","events_url":"https://api.github.com/repos/krux/hyperion/events","assignees_url":"https://api.github.com/repos/krux/hyperion/assignees{/user}","branches_url":"https://api.github.com/repos/krux/hyperion/branches{/branch}","tags_url":"https://api.github.com/repos/krux/hyperion/tags","blobs_url":"https://api.github.com/repos/krux/hyperion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krux/hyperion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krux/hyperion/git/refs{/sha}","trees_url":"https://api.github.com/repos/krux/hyperion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krux/hyperion/statuses/{sha}","languages_url":"https://api.github.com/repos/krux/hyperion/languages","stargazers_url":"https://api.github.com/repos/krux/hyperion/stargazers","contributors_url":"https://api.github.com/repos/krux/hyperion/contributors","subscribers_url":"https://api.github.com/repos/krux/hyperion/subscribers","subscription_url":"https://api.github.com/repos/krux/hyperion/subscription","commits_url":"https://api.github.com/repos/krux/hyperion/commits{/sha}","git_commits_url":"https://api.github.com/repos/krux/hyperion/git/commits{/sha}","comments_url":"https://api.github.com/repos/krux/hyperion/comments{/number}","issue_comment_url":"https://api.github.com/repos/krux/hyperion/issues/comments{/number}","contents_url":"https://api.github.com/repos/krux/hyperion/contents/{+path}","compare_url":"https://api.github.com/repos/krux/hyperion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krux/hyperion/merges","archive_url":"https://api.github.com/repos/krux/hyperion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krux/hyperion/downloads","issues_url":"https://api.github.com/repos/krux/hyperion/issues{/number}","pulls_url":"https://api.github.com/repos/krux/hyperion/pulls{/number}","milestones_url":"https://api.github.com/repos/krux/hyperion/milestones{/number}","notifications_url":"https://api.github.com/repos/krux/hyperion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krux/hyperion/labels{/name}","releases_url":"https://api.github.com/repos/krux/hyperion/releases{/id}","deployments_url":"https://api.github.com/repos/krux/hyperion/deployments","created_at":"2015-03-25T03:07:31Z","updated_at":"2016-07-08T07:16:45Z","pushed_at":"2016-10-20T23:35:02Z","git_url":"git://github.com/krux/hyperion.git","ssh_url":"git@github.com:krux/hyperion.git","clone_url":"https://github.com/krux/hyperion.git","svn_url":"https://github.com/krux/hyperion","homepage":"","size":3624,"stargazers_count":22,"watchers_count":22,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":32,"forks":14,"open_issues":32,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krux/hyperion/pulls/471"},"html":{"href":"https://github.com/krux/hyperion/pull/471"},"issue":{"href":"https://api.github.com/repos/krux/hyperion/issues/471"},"comments":{"href":"https://api.github.com/repos/krux/hyperion/issues/471/comments"},"review_comments":{"href":"https://api.github.com/repos/krux/hyperion/pulls/471/comments"},"review_comment":{"href":"https://api.github.com/repos/krux/hyperion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krux/hyperion/pulls/471/commits"},"statuses":{"href":"https://api.github.com/repos/krux/hyperion/statuses/25ce0615ef29ada8aed36a1b62682e73a457c943"}}}}
{"actor":{"display_login":"sethyates"}}