{"action":"created","comment":{"url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/comments/74688066","id":74688066,"diff_hunk":"@@ -41,10 +43,31 @@ def installer_url(version)\n       \"https://download.octopusdeploy.com/octopus/Octopus.Tentacle.#{version}-x64.msi\"\n     end\n \n+    def tentacle_exists?(server, api_key, thumbprint)\n+      ::JSON.parse(api_client(server, api_key).get('/machines/all')).any? do |machine|","path":"libraries/tentacle.rb","position":14,"original_position":14,"commit_id":"3c62f48035d1cdc36434bf6bd00021d819667f2a","original_commit_id":"4dbcb25532f672dc8f8fb618297470ab8b828695","user":{"login":"spuder","id":242382,"avatar_url":"https://avatars.githubusercontent.com/u/242382?v=3","gravatar_id":"","url":"https://api.github.com/users/spuder","html_url":"https://github.com/spuder","followers_url":"https://api.github.com/users/spuder/followers","following_url":"https://api.github.com/users/spuder/following{/other_user}","gists_url":"https://api.github.com/users/spuder/gists{/gist_id}","starred_url":"https://api.github.com/users/spuder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spuder/subscriptions","organizations_url":"https://api.github.com/users/spuder/orgs","repos_url":"https://api.github.com/users/spuder/repos","events_url":"https://api.github.com/users/spuder/events{/privacy}","received_events_url":"https://api.github.com/users/spuder/received_events","type":"User","site_admin":false},"body":"/machines/all can take a long time to return. I don't know how well that will scale to hundreds of tentacles. \r\n\r\nI've opened a feature request to allow for querying a single tentacle instance to see if it is already registered. \r\n\r\nhttp://help.octopusdeploy.com/discussions/beta-testing-feedback/167-feature-request-api-to-querry-if-tentacle-already-exists","created_at":"2016-08-13T15:17:06Z","updated_at":"2016-08-13T15:17:06Z","html_url":"https://github.com/cvent/octopus-deploy-cookbook/pull/47#discussion_r74688066","pull_request_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/comments/74688066"},"html":{"href":"https://github.com/cvent/octopus-deploy-cookbook/pull/47#discussion_r74688066"},"pull_request":{"href":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/47","id":80871824,"html_url":"https://github.com/cvent/octopus-deploy-cookbook/pull/47","diff_url":"https://github.com/cvent/octopus-deploy-cookbook/pull/47.diff","patch_url":"https://github.com/cvent/octopus-deploy-cookbook/pull/47.patch","issue_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/issues/47","number":47,"state":"open","locked":false,"title":"[WIP] Refactor some of the register tentacle functionality","user":{"login":"brentm5","id":1045510,"avatar_url":"https://avatars.githubusercontent.com/u/1045510?v=3","gravatar_id":"","url":"https://api.github.com/users/brentm5","html_url":"https://github.com/brentm5","followers_url":"https://api.github.com/users/brentm5/followers","following_url":"https://api.github.com/users/brentm5/following{/other_user}","gists_url":"https://api.github.com/users/brentm5/gists{/gist_id}","starred_url":"https://api.github.com/users/brentm5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentm5/subscriptions","organizations_url":"https://api.github.com/users/brentm5/orgs","repos_url":"https://api.github.com/users/brentm5/repos","events_url":"https://api.github.com/users/brentm5/events{/privacy}","received_events_url":"https://api.github.com/users/brentm5/received_events","type":"User","site_admin":false},"body":"### Description\r\n\r\nThis aims to cleanup some of the duplicated code with registering tentacles and move to use strict ruby instead of powershell guards.  It should be identical in function.\r\n\r\n### Contribution Check List\r\n- [x] All tests pass.","created_at":"2016-08-10T21:35:15Z","updated_at":"2016-08-13T15:17:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93d22f6f44c4798e1eda9e1326802cb6c7304a02","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/47/commits","review_comments_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/47/comments","review_comment_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/issues/47/comments","statuses_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/statuses/3c62f48035d1cdc36434bf6bd00021d819667f2a","head":{"label":"cvent:bm-cleanup-register","ref":"bm-cleanup-register","sha":"3c62f48035d1cdc36434bf6bd00021d819667f2a","user":{"login":"cvent","id":5034428,"avatar_url":"https://avatars.githubusercontent.com/u/5034428?v=3","gravatar_id":"","url":"https://api.github.com/users/cvent","html_url":"https://github.com/cvent","followers_url":"https://api.github.com/users/cvent/followers","following_url":"https://api.github.com/users/cvent/following{/other_user}","gists_url":"https://api.github.com/users/cvent/gists{/gist_id}","starred_url":"https://api.github.com/users/cvent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvent/subscriptions","organizations_url":"https://api.github.com/users/cvent/orgs","repos_url":"https://api.github.com/users/cvent/repos","events_url":"https://api.github.com/users/cvent/events{/privacy}","received_events_url":"https://api.github.com/users/cvent/received_events","type":"Organization","site_admin":false},"repo":{"id":41830815,"name":"octopus-deploy-cookbook","full_name":"cvent/octopus-deploy-cookbook","owner":{"login":"cvent","id":5034428,"avatar_url":"https://avatars.githubusercontent.com/u/5034428?v=3","gravatar_id":"","url":"https://api.github.com/users/cvent","html_url":"https://github.com/cvent","followers_url":"https://api.github.com/users/cvent/followers","following_url":"https://api.github.com/users/cvent/following{/other_user}","gists_url":"https://api.github.com/users/cvent/gists{/gist_id}","starred_url":"https://api.github.com/users/cvent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvent/subscriptions","organizations_url":"https://api.github.com/users/cvent/orgs","repos_url":"https://api.github.com/users/cvent/repos","events_url":"https://api.github.com/users/cvent/events{/privacy}","received_events_url":"https://api.github.com/users/cvent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cvent/octopus-deploy-cookbook","description":"Chef cookbook for configuring Octopus Deploy.","fork":false,"url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook","forks_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/forks","keys_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/teams","hooks_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/hooks","issue_events_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/events","assignees_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/tags","blobs_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/languages","stargazers_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/stargazers","contributors_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/contributors","subscribers_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/subscribers","subscription_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/subscription","commits_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/merges","archive_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/downloads","issues_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/releases{/id}","deployments_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/deployments","created_at":"2015-09-02T22:28:04Z","updated_at":"2016-08-05T23:06:00Z","pushed_at":"2016-08-13T15:11:40Z","git_url":"git://github.com/cvent/octopus-deploy-cookbook.git","ssh_url":"git@github.com:cvent/octopus-deploy-cookbook.git","clone_url":"https://github.com/cvent/octopus-deploy-cookbook.git","svn_url":"https://github.com/cvent/octopus-deploy-cookbook","homepage":"https://supermarket.chef.io/cookbooks/octopus-deploy","size":96,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"cvent:master","ref":"master","sha":"0d8503cbafcd268a4978eaf26e54523ce6de90a8","user":{"login":"cvent","id":5034428,"avatar_url":"https://avatars.githubusercontent.com/u/5034428?v=3","gravatar_id":"","url":"https://api.github.com/users/cvent","html_url":"https://github.com/cvent","followers_url":"https://api.github.com/users/cvent/followers","following_url":"https://api.github.com/users/cvent/following{/other_user}","gists_url":"https://api.github.com/users/cvent/gists{/gist_id}","starred_url":"https://api.github.com/users/cvent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvent/subscriptions","organizations_url":"https://api.github.com/users/cvent/orgs","repos_url":"https://api.github.com/users/cvent/repos","events_url":"https://api.github.com/users/cvent/events{/privacy}","received_events_url":"https://api.github.com/users/cvent/received_events","type":"Organization","site_admin":false},"repo":{"id":41830815,"name":"octopus-deploy-cookbook","full_name":"cvent/octopus-deploy-cookbook","owner":{"login":"cvent","id":5034428,"avatar_url":"https://avatars.githubusercontent.com/u/5034428?v=3","gravatar_id":"","url":"https://api.github.com/users/cvent","html_url":"https://github.com/cvent","followers_url":"https://api.github.com/users/cvent/followers","following_url":"https://api.github.com/users/cvent/following{/other_user}","gists_url":"https://api.github.com/users/cvent/gists{/gist_id}","starred_url":"https://api.github.com/users/cvent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvent/subscriptions","organizations_url":"https://api.github.com/users/cvent/orgs","repos_url":"https://api.github.com/users/cvent/repos","events_url":"https://api.github.com/users/cvent/events{/privacy}","received_events_url":"https://api.github.com/users/cvent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cvent/octopus-deploy-cookbook","description":"Chef cookbook for configuring Octopus Deploy.","fork":false,"url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook","forks_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/forks","keys_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/teams","hooks_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/hooks","issue_events_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/events","assignees_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/tags","blobs_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/languages","stargazers_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/stargazers","contributors_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/contributors","subscribers_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/subscribers","subscription_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/subscription","commits_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/merges","archive_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/downloads","issues_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/releases{/id}","deployments_url":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/deployments","created_at":"2015-09-02T22:28:04Z","updated_at":"2016-08-05T23:06:00Z","pushed_at":"2016-08-13T15:11:40Z","git_url":"git://github.com/cvent/octopus-deploy-cookbook.git","ssh_url":"git@github.com:cvent/octopus-deploy-cookbook.git","clone_url":"https://github.com/cvent/octopus-deploy-cookbook.git","svn_url":"https://github.com/cvent/octopus-deploy-cookbook","homepage":"https://supermarket.chef.io/cookbooks/octopus-deploy","size":96,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/47"},"html":{"href":"https://github.com/cvent/octopus-deploy-cookbook/pull/47"},"issue":{"href":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/issues/47"},"comments":{"href":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/cvent/octopus-deploy-cookbook/statuses/3c62f48035d1cdc36434bf6bd00021d819667f2a"}}}}
{"actor":{"display_login":"spuder"}}