{"action":"created","comment":{"url":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/comments/129392247","pull_request_review_id":52160664,"id":129392247,"diff_hunk":"@@ -0,0 +1,97 @@\n+# Cloud Foundry Java Buildpack\n+#\n+# Copyright 2013-2017 the original author or authors.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#      http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+require 'fileutils'\n+require 'java_buildpack/component/versioned_dependency_component'\n+require 'java_buildpack/framework'\n+require 'java_buildpack/util/qualify_path'\n+\n+module JavaBuildpack\n+  module Framework\n+\n+    # Encapsulates the functionality for enabling zero-touch OverOps (fka Takipi) support.\n+    class TakipiAgent < JavaBuildpack::Component::VersionedDependencyComponent\n+      include JavaBuildpack::Util\n+\n+      # (see JavaBuildpack::Component::BaseComponent#compile)\n+      def compile\n+        download_tar\n+        @droplet.copy_resources\n+      end\n+\n+      # (see JavaBuildpack::Component::BaseComponent#release)\n+      def release\n+        java_opts = @droplet.java_opts\n+        java_opts.add_agentpath(@droplet.sandbox + 'lib/libTakipiAgent.so')\n+        application_name java_opts\n+        default_env_vars\n+        config_env_vars\n+      end\n+\n+      protected\n+\n+      # (see JavaBuildpack::Component::VersionedDependencyComponent#supports?)\n+      def supports?\n+        @configuration['secret_key'] || @configuration['collector_host']","path":"lib/java_buildpack/framework/takipi_agent.rb","position":48,"original_position":48,"commit_id":"6a547f1c26b0d277ac8261832b9bee0c89ebecec","original_commit_id":"6a547f1c26b0d277ac8261832b9bee0c89ebecec","user":{"login":"nebhale","id":60754,"avatar_url":"https://avatars1.githubusercontent.com/u/60754?v=4","gravatar_id":"","url":"https://api.github.com/users/nebhale","html_url":"https://github.com/nebhale","followers_url":"https://api.github.com/users/nebhale/followers","following_url":"https://api.github.com/users/nebhale/following{/other_user}","gists_url":"https://api.github.com/users/nebhale/gists{/gist_id}","starred_url":"https://api.github.com/users/nebhale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nebhale/subscriptions","organizations_url":"https://api.github.com/users/nebhale/orgs","repos_url":"https://api.github.com/users/nebhale/repos","events_url":"https://api.github.com/users/nebhale/events{/privacy}","received_events_url":"https://api.github.com/users/nebhale/received_events","type":"User","site_admin":false},"body":"Absolutely.  I've got a call with your team tomorrow, so if you come up against anything we can discuss there.  Beyond that, I'm happy to answer any questions you have here or in the [Cloud Foundry Slack #java-buildpack channel](https://slack.cloudfoundry.org).","created_at":"2017-07-25T18:47:27Z","updated_at":"2017-07-25T18:47:27Z","html_url":"https://github.com/cloudfoundry/java-buildpack/pull/472#discussion_r129392247","pull_request_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/472","_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/comments/129392247"},"html":{"href":"https://github.com/cloudfoundry/java-buildpack/pull/472#discussion_r129392247"},"pull_request":{"href":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/472"}}},"pull_request":{"url":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/472","id":132223793,"html_url":"https://github.com/cloudfoundry/java-buildpack/pull/472","diff_url":"https://github.com/cloudfoundry/java-buildpack/pull/472.diff","patch_url":"https://github.com/cloudfoundry/java-buildpack/pull/472.patch","issue_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/472","number":472,"state":"open","locked":false,"title":"Adding Takipi agent framework","user":{"login":"chook","id":3480481,"avatar_url":"https://avatars2.githubusercontent.com/u/3480481?v=4","gravatar_id":"","url":"https://api.github.com/users/chook","html_url":"https://github.com/chook","followers_url":"https://api.github.com/users/chook/followers","following_url":"https://api.github.com/users/chook/following{/other_user}","gists_url":"https://api.github.com/users/chook/gists{/gist_id}","starred_url":"https://api.github.com/users/chook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chook/subscriptions","organizations_url":"https://api.github.com/users/chook/orgs","repos_url":"https://api.github.com/users/chook/repos","events_url":"https://api.github.com/users/chook/events{/privacy}","received_events_url":"https://api.github.com/users/chook/received_events","type":"User","site_admin":false},"body":"Added support for Takipi analytics and root cause analysis tool.\r\nThe framework supports both local and remote collector approaches.","created_at":"2017-07-25T08:30:38Z","updated_at":"2017-07-25T18:47:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2b85528735969add3082e9bdd73ac47219a79a0","assignee":{"login":"nebhale","id":60754,"avatar_url":"https://avatars1.githubusercontent.com/u/60754?v=4","gravatar_id":"","url":"https://api.github.com/users/nebhale","html_url":"https://github.com/nebhale","followers_url":"https://api.github.com/users/nebhale/followers","following_url":"https://api.github.com/users/nebhale/following{/other_user}","gists_url":"https://api.github.com/users/nebhale/gists{/gist_id}","starred_url":"https://api.github.com/users/nebhale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nebhale/subscriptions","organizations_url":"https://api.github.com/users/nebhale/orgs","repos_url":"https://api.github.com/users/nebhale/repos","events_url":"https://api.github.com/users/nebhale/events{/privacy}","received_events_url":"https://api.github.com/users/nebhale/received_events","type":"User","site_admin":false},"assignees":[{"login":"nebhale","id":60754,"avatar_url":"https://avatars1.githubusercontent.com/u/60754?v=4","gravatar_id":"","url":"https://api.github.com/users/nebhale","html_url":"https://github.com/nebhale","followers_url":"https://api.github.com/users/nebhale/followers","following_url":"https://api.github.com/users/nebhale/following{/other_user}","gists_url":"https://api.github.com/users/nebhale/gists{/gist_id}","starred_url":"https://api.github.com/users/nebhale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nebhale/subscriptions","organizations_url":"https://api.github.com/users/nebhale/orgs","repos_url":"https://api.github.com/users/nebhale/repos","events_url":"https://api.github.com/users/nebhale/events{/privacy}","received_events_url":"https://api.github.com/users/nebhale/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/cloudfoundry/java-buildpack/milestones/12","html_url":"https://github.com/cloudfoundry/java-buildpack/milestone/12","labels_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/milestones/12/labels","id":2652958,"number":12,"title":"v4.4","description":"","creator":{"login":"nebhale","id":60754,"avatar_url":"https://avatars1.githubusercontent.com/u/60754?v=4","gravatar_id":"","url":"https://api.github.com/users/nebhale","html_url":"https://github.com/nebhale","followers_url":"https://api.github.com/users/nebhale/followers","following_url":"https://api.github.com/users/nebhale/following{/other_user}","gists_url":"https://api.github.com/users/nebhale/gists{/gist_id}","starred_url":"https://api.github.com/users/nebhale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nebhale/subscriptions","organizations_url":"https://api.github.com/users/nebhale/orgs","repos_url":"https://api.github.com/users/nebhale/repos","events_url":"https://api.github.com/users/nebhale/events{/privacy}","received_events_url":"https://api.github.com/users/nebhale/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":1,"state":"open","created_at":"2017-07-20T17:15:23Z","updated_at":"2017-07-25T17:12:50Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/472/commits","review_comments_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/472/comments","review_comment_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/472/comments","statuses_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/statuses/6a547f1c26b0d277ac8261832b9bee0c89ebecec","head":{"label":"chook:takipi-agent","ref":"takipi-agent","sha":"6a547f1c26b0d277ac8261832b9bee0c89ebecec","user":{"login":"chook","id":3480481,"avatar_url":"https://avatars2.githubusercontent.com/u/3480481?v=4","gravatar_id":"","url":"https://api.github.com/users/chook","html_url":"https://github.com/chook","followers_url":"https://api.github.com/users/chook/followers","following_url":"https://api.github.com/users/chook/following{/other_user}","gists_url":"https://api.github.com/users/chook/gists{/gist_id}","starred_url":"https://api.github.com/users/chook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chook/subscriptions","organizations_url":"https://api.github.com/users/chook/orgs","repos_url":"https://api.github.com/users/chook/repos","events_url":"https://api.github.com/users/chook/events{/privacy}","received_events_url":"https://api.github.com/users/chook/received_events","type":"User","site_admin":false},"repo":{"id":61122068,"name":"java-buildpack","full_name":"chook/java-buildpack","owner":{"login":"chook","id":3480481,"avatar_url":"https://avatars2.githubusercontent.com/u/3480481?v=4","gravatar_id":"","url":"https://api.github.com/users/chook","html_url":"https://github.com/chook","followers_url":"https://api.github.com/users/chook/followers","following_url":"https://api.github.com/users/chook/following{/other_user}","gists_url":"https://api.github.com/users/chook/gists{/gist_id}","starred_url":"https://api.github.com/users/chook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chook/subscriptions","organizations_url":"https://api.github.com/users/chook/orgs","repos_url":"https://api.github.com/users/chook/repos","events_url":"https://api.github.com/users/chook/events{/privacy}","received_events_url":"https://api.github.com/users/chook/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chook/java-buildpack","description":"Cloud Foundry buildpack for running Java applications","fork":true,"url":"https://api.github.com/repos/chook/java-buildpack","forks_url":"https://api.github.com/repos/chook/java-buildpack/forks","keys_url":"https://api.github.com/repos/chook/java-buildpack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chook/java-buildpack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chook/java-buildpack/teams","hooks_url":"https://api.github.com/repos/chook/java-buildpack/hooks","issue_events_url":"https://api.github.com/repos/chook/java-buildpack/issues/events{/number}","events_url":"https://api.github.com/repos/chook/java-buildpack/events","assignees_url":"https://api.github.com/repos/chook/java-buildpack/assignees{/user}","branches_url":"https://api.github.com/repos/chook/java-buildpack/branches{/branch}","tags_url":"https://api.github.com/repos/chook/java-buildpack/tags","blobs_url":"https://api.github.com/repos/chook/java-buildpack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chook/java-buildpack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chook/java-buildpack/git/refs{/sha}","trees_url":"https://api.github.com/repos/chook/java-buildpack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chook/java-buildpack/statuses/{sha}","languages_url":"https://api.github.com/repos/chook/java-buildpack/languages","stargazers_url":"https://api.github.com/repos/chook/java-buildpack/stargazers","contributors_url":"https://api.github.com/repos/chook/java-buildpack/contributors","subscribers_url":"https://api.github.com/repos/chook/java-buildpack/subscribers","subscription_url":"https://api.github.com/repos/chook/java-buildpack/subscription","commits_url":"https://api.github.com/repos/chook/java-buildpack/commits{/sha}","git_commits_url":"https://api.github.com/repos/chook/java-buildpack/git/commits{/sha}","comments_url":"https://api.github.com/repos/chook/java-buildpack/comments{/number}","issue_comment_url":"https://api.github.com/repos/chook/java-buildpack/issues/comments{/number}","contents_url":"https://api.github.com/repos/chook/java-buildpack/contents/{+path}","compare_url":"https://api.github.com/repos/chook/java-buildpack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chook/java-buildpack/merges","archive_url":"https://api.github.com/repos/chook/java-buildpack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chook/java-buildpack/downloads","issues_url":"https://api.github.com/repos/chook/java-buildpack/issues{/number}","pulls_url":"https://api.github.com/repos/chook/java-buildpack/pulls{/number}","milestones_url":"https://api.github.com/repos/chook/java-buildpack/milestones{/number}","notifications_url":"https://api.github.com/repos/chook/java-buildpack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chook/java-buildpack/labels{/name}","releases_url":"https://api.github.com/repos/chook/java-buildpack/releases{/id}","deployments_url":"https://api.github.com/repos/chook/java-buildpack/deployments","created_at":"2016-06-14T12:44:48Z","updated_at":"2016-06-14T12:44:50Z","pushed_at":"2017-07-25T08:27:13Z","git_url":"git://github.com/chook/java-buildpack.git","ssh_url":"git@github.com:chook/java-buildpack.git","clone_url":"https://github.com/chook/java-buildpack.git","svn_url":"https://github.com/chook/java-buildpack","homepage":null,"size":4101,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"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":"cloudfoundry:master","ref":"master","sha":"c9912c816a1c09a00708620daca78c986e55b769","user":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars0.githubusercontent.com/u/621746?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"repo":{"id":9899931,"name":"java-buildpack","full_name":"cloudfoundry/java-buildpack","owner":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars0.githubusercontent.com/u/621746?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfoundry/java-buildpack","description":"Cloud Foundry buildpack for running Java applications","fork":false,"url":"https://api.github.com/repos/cloudfoundry/java-buildpack","forks_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/forks","keys_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/teams","hooks_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/hooks","issue_events_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/events","assignees_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/tags","blobs_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/languages","stargazers_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/stargazers","contributors_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/contributors","subscribers_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/subscribers","subscription_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/subscription","commits_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/merges","archive_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/downloads","issues_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/labels{/name}","releases_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/releases{/id}","deployments_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/deployments","created_at":"2013-05-06T23:58:33Z","updated_at":"2017-07-22T12:48:20Z","pushed_at":"2017-07-25T08:30:39Z","git_url":"git://github.com/cloudfoundry/java-buildpack.git","ssh_url":"git@github.com:cloudfoundry/java-buildpack.git","clone_url":"https://github.com/cloudfoundry/java-buildpack.git","svn_url":"https://github.com/cloudfoundry/java-buildpack","homepage":null,"size":4145,"stargazers_count":205,"watchers_count":205,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2126,"mirror_url":null,"open_issues_count":14,"forks":2126,"open_issues":14,"watchers":205,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/472"},"html":{"href":"https://github.com/cloudfoundry/java-buildpack/pull/472"},"issue":{"href":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/472"},"comments":{"href":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/472/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/472/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudfoundry/java-buildpack/pulls/472/commits"},"statuses":{"href":"https://api.github.com/repos/cloudfoundry/java-buildpack/statuses/6a547f1c26b0d277ac8261832b9bee0c89ebecec"}}}}
{"actor":{"display_login":"nebhale"}}