{"action":"created","comment":{"url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/comments/245485518","pull_request_review_id":189605487,"id":245485518,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTQ4NTUxOA==","diff_hunk":"@@ -0,0 +1,112 @@\n+# frozen_string_literal: true\n+\n+# Copyright 2016 New Context Services, Inc.\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 \"kitchen\"\n+require \"kitchen/terraform/command_flag/color\"\n+require \"kitchen/terraform/command_flag/lock_timeout\"\n+require \"kitchen/terraform/command_flag/lock\"\n+require \"kitchen/terraform/command_flag/parallelism\"\n+require \"kitchen/terraform/command_flag/variable_files\"\n+require \"kitchen/terraform/command_flag/variables\"\n+require \"kitchen/terraform/shell_out\"\n+\n+module Kitchen","path":"lib/kitchen/terraform/command/destroy.rb","position":26,"original_position":26,"commit_id":"7510703ed95690ea1fb630b6c302cffcb20b9780","original_commit_id":"7510703ed95690ea1fb630b6c302cffcb20b9780","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Similar blocks of code found in 3 locations. Consider refactoring.","created_at":"2019-01-05T19:02:44Z","updated_at":"2019-01-05T19:02:45Z","html_url":"https://github.com/newcontext-oss/kitchen-terraform/pull/313#discussion_r245485518","pull_request_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/313","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/comments/245485518"},"html":{"href":"https://github.com/newcontext-oss/kitchen-terraform/pull/313#discussion_r245485518"},"pull_request":{"href":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/313"}}},"pull_request":{"url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/313","id":242453582,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyNDUzNTgy","html_url":"https://github.com/newcontext-oss/kitchen-terraform/pull/313","diff_url":"https://github.com/newcontext-oss/kitchen-terraform/pull/313.diff","patch_url":"https://github.com/newcontext-oss/kitchen-terraform/pull/313.patch","issue_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/issues/313","number":313,"state":"open","locked":false,"title":"Redesign interaction with Terraform CLI","user":{"login":"aaron-lane","id":10655063,"node_id":"MDQ6VXNlcjEwNjU1MDYz","avatar_url":"https://avatars2.githubusercontent.com/u/10655063?v=4","gravatar_id":"","url":"https://api.github.com/users/aaron-lane","html_url":"https://github.com/aaron-lane","followers_url":"https://api.github.com/users/aaron-lane/followers","following_url":"https://api.github.com/users/aaron-lane/following{/other_user}","gists_url":"https://api.github.com/users/aaron-lane/gists{/gist_id}","starred_url":"https://api.github.com/users/aaron-lane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaron-lane/subscriptions","organizations_url":"https://api.github.com/users/aaron-lane/orgs","repos_url":"https://api.github.com/users/aaron-lane/repos","events_url":"https://api.github.com/users/aaron-lane/events{/privacy}","received_events_url":"https://api.github.com/users/aaron-lane/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-01-05T18:25:37Z","updated_at":"2019-01-05T19:02:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e75853b0626d6dd801c163599296bdd39f48880b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/313/commits","review_comments_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/313/comments","review_comment_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/issues/313/comments","statuses_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/statuses/7510703ed95690ea1fb630b6c302cffcb20b9780","head":{"label":"newcontext-oss:aaron-lane/commands","ref":"aaron-lane/commands","sha":"7510703ed95690ea1fb630b6c302cffcb20b9780","user":{"login":"newcontext-oss","id":21958632,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTU4NjMy","avatar_url":"https://avatars3.githubusercontent.com/u/21958632?v=4","gravatar_id":"","url":"https://api.github.com/users/newcontext-oss","html_url":"https://github.com/newcontext-oss","followers_url":"https://api.github.com/users/newcontext-oss/followers","following_url":"https://api.github.com/users/newcontext-oss/following{/other_user}","gists_url":"https://api.github.com/users/newcontext-oss/gists{/gist_id}","starred_url":"https://api.github.com/users/newcontext-oss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newcontext-oss/subscriptions","organizations_url":"https://api.github.com/users/newcontext-oss/orgs","repos_url":"https://api.github.com/users/newcontext-oss/repos","events_url":"https://api.github.com/users/newcontext-oss/events{/privacy}","received_events_url":"https://api.github.com/users/newcontext-oss/received_events","type":"Organization","site_admin":false},"repo":{"id":61765009,"node_id":"MDEwOlJlcG9zaXRvcnk2MTc2NTAwOQ==","name":"kitchen-terraform","full_name":"newcontext-oss/kitchen-terraform","private":false,"owner":{"login":"newcontext-oss","id":21958632,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTU4NjMy","avatar_url":"https://avatars3.githubusercontent.com/u/21958632?v=4","gravatar_id":"","url":"https://api.github.com/users/newcontext-oss","html_url":"https://github.com/newcontext-oss","followers_url":"https://api.github.com/users/newcontext-oss/followers","following_url":"https://api.github.com/users/newcontext-oss/following{/other_user}","gists_url":"https://api.github.com/users/newcontext-oss/gists{/gist_id}","starred_url":"https://api.github.com/users/newcontext-oss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newcontext-oss/subscriptions","organizations_url":"https://api.github.com/users/newcontext-oss/orgs","repos_url":"https://api.github.com/users/newcontext-oss/repos","events_url":"https://api.github.com/users/newcontext-oss/events{/privacy}","received_events_url":"https://api.github.com/users/newcontext-oss/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/newcontext-oss/kitchen-terraform","description":"Test Kitchen plugins for testing Terraform configurations","fork":false,"url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform","forks_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/forks","keys_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/teams","hooks_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/hooks","issue_events_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/issues/events{/number}","events_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/events","assignees_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/assignees{/user}","branches_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/branches{/branch}","tags_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/tags","blobs_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/languages","stargazers_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/stargazers","contributors_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/contributors","subscribers_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/subscribers","subscription_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/subscription","commits_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/contents/{+path}","compare_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/merges","archive_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/downloads","issues_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/issues{/number}","pulls_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/labels{/name}","releases_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/releases{/id}","deployments_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/deployments","created_at":"2016-06-23T01:59:10Z","updated_at":"2018-12-31T16:34:32Z","pushed_at":"2019-01-05T18:58:08Z","git_url":"git://github.com/newcontext-oss/kitchen-terraform.git","ssh_url":"git@github.com:newcontext-oss/kitchen-terraform.git","clone_url":"https://github.com/newcontext-oss/kitchen-terraform.git","svn_url":"https://github.com/newcontext-oss/kitchen-terraform","homepage":"https://github.com/newcontext/kitchen-terraform","size":2469,"stargazers_count":594,"watchers_count":594,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":97,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":97,"open_issues":18,"watchers":594,"default_branch":"master"}},"base":{"label":"newcontext-oss:master","ref":"master","sha":"28d1a04799f8429b193ffd5ebe22993e1b8bf654","user":{"login":"newcontext-oss","id":21958632,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTU4NjMy","avatar_url":"https://avatars3.githubusercontent.com/u/21958632?v=4","gravatar_id":"","url":"https://api.github.com/users/newcontext-oss","html_url":"https://github.com/newcontext-oss","followers_url":"https://api.github.com/users/newcontext-oss/followers","following_url":"https://api.github.com/users/newcontext-oss/following{/other_user}","gists_url":"https://api.github.com/users/newcontext-oss/gists{/gist_id}","starred_url":"https://api.github.com/users/newcontext-oss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newcontext-oss/subscriptions","organizations_url":"https://api.github.com/users/newcontext-oss/orgs","repos_url":"https://api.github.com/users/newcontext-oss/repos","events_url":"https://api.github.com/users/newcontext-oss/events{/privacy}","received_events_url":"https://api.github.com/users/newcontext-oss/received_events","type":"Organization","site_admin":false},"repo":{"id":61765009,"node_id":"MDEwOlJlcG9zaXRvcnk2MTc2NTAwOQ==","name":"kitchen-terraform","full_name":"newcontext-oss/kitchen-terraform","private":false,"owner":{"login":"newcontext-oss","id":21958632,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxOTU4NjMy","avatar_url":"https://avatars3.githubusercontent.com/u/21958632?v=4","gravatar_id":"","url":"https://api.github.com/users/newcontext-oss","html_url":"https://github.com/newcontext-oss","followers_url":"https://api.github.com/users/newcontext-oss/followers","following_url":"https://api.github.com/users/newcontext-oss/following{/other_user}","gists_url":"https://api.github.com/users/newcontext-oss/gists{/gist_id}","starred_url":"https://api.github.com/users/newcontext-oss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newcontext-oss/subscriptions","organizations_url":"https://api.github.com/users/newcontext-oss/orgs","repos_url":"https://api.github.com/users/newcontext-oss/repos","events_url":"https://api.github.com/users/newcontext-oss/events{/privacy}","received_events_url":"https://api.github.com/users/newcontext-oss/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/newcontext-oss/kitchen-terraform","description":"Test Kitchen plugins for testing Terraform configurations","fork":false,"url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform","forks_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/forks","keys_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/teams","hooks_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/hooks","issue_events_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/issues/events{/number}","events_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/events","assignees_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/assignees{/user}","branches_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/branches{/branch}","tags_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/tags","blobs_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/languages","stargazers_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/stargazers","contributors_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/contributors","subscribers_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/subscribers","subscription_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/subscription","commits_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/contents/{+path}","compare_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/merges","archive_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/downloads","issues_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/issues{/number}","pulls_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/labels{/name}","releases_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/releases{/id}","deployments_url":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/deployments","created_at":"2016-06-23T01:59:10Z","updated_at":"2018-12-31T16:34:32Z","pushed_at":"2019-01-05T18:58:08Z","git_url":"git://github.com/newcontext-oss/kitchen-terraform.git","ssh_url":"git@github.com:newcontext-oss/kitchen-terraform.git","clone_url":"https://github.com/newcontext-oss/kitchen-terraform.git","svn_url":"https://github.com/newcontext-oss/kitchen-terraform","homepage":"https://github.com/newcontext/kitchen-terraform","size":2469,"stargazers_count":594,"watchers_count":594,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":97,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":97,"open_issues":18,"watchers":594,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/313"},"html":{"href":"https://github.com/newcontext-oss/kitchen-terraform/pull/313"},"issue":{"href":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/issues/313"},"comments":{"href":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/issues/313/comments"},"review_comments":{"href":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/313/comments"},"review_comment":{"href":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/pulls/313/commits"},"statuses":{"href":"https://api.github.com/repos/newcontext-oss/kitchen-terraform/statuses/7510703ed95690ea1fb630b6c302cffcb20b9780"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codeclimate"}}