{"action":"created","comment":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/comments/22979321","id":22979321,"diff_hunk":"@@ -0,0 +1,82 @@\n+# -*- encoding: utf-8 -*-\n+#\n+# Author:: Matt Wrock (<matt@mattwrock.com>)\n+#\n+# Copyright (C) 2014, Matt Wrock\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+module Kitchen\n+\n+  module Shell\n+\n+    # Bourne shell.\n+    #\n+    # @author Matt Wrock <matt@mattwrock.com>\n+    class Bourne < Base\n+\n+      # (see Base#busser_setup)\n+      def busser_setup(ruby_bin, busser_root, gem_install_args)\n+        gem = sudo(\"#{ruby_bin}/gem\")\n+        <<-CMD.gsub(/^ {10}/, \"\")\n+          mkdir -p #{busser_root}/suites\n+          gem_bindir=`#{ruby_bin}/ruby -rrubygems -e \"puts Gem.bindir\"`\n+\n+          if ! #{gem} list busser -i >/dev/null; then\n+            #{gem} install #{gem_install_args}\n+          fi\n+          #{sudo(\"${gem_bindir}\")}/busser setup\n+        CMD\n+      end\n+\n+      # (see Base#set_env)\n+      def set_env(key, value)\n+        <<-CMD.gsub(/^ {10}/, \"\")\n+          #{key}=\"#{value}\"\n+          export #{key}\n+        CMD\n+      end\n+\n+      # (see Base#add_to_path)\n+      def add_to_path(dir)\n+        <<-CMD.gsub(/^ {10}/, \"\")\n+          export PATH=\"#{dir}:$PATH\"","path":"lib/kitchen/shell/bourne.rb","position":53,"original_position":53,"commit_id":"ecb2a60efbfe6506a72e74c1c90be9edf9225a74","original_commit_id":"ecb2a60efbfe6506a72e74c1c90be9edf9225a74","user":{"login":"tyler-ball","id":2481463,"avatar_url":"https://avatars.githubusercontent.com/u/2481463?v=3","gravatar_id":"","url":"https://api.github.com/users/tyler-ball","html_url":"https://github.com/tyler-ball","followers_url":"https://api.github.com/users/tyler-ball/followers","following_url":"https://api.github.com/users/tyler-ball/following{/other_user}","gists_url":"https://api.github.com/users/tyler-ball/gists{/gist_id}","starred_url":"https://api.github.com/users/tyler-ball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyler-ball/subscriptions","organizations_url":"https://api.github.com/users/tyler-ball/orgs","repos_url":"https://api.github.com/users/tyler-ball/repos","events_url":"https://api.github.com/users/tyler-ball/events{/privacy}","received_events_url":"https://api.github.com/users/tyler-ball/received_events","type":"User","site_admin":false},"body":"Has there ever been a use case for appending at the end of the path instead of the beginning?","created_at":"2015-01-14T23:14:46Z","updated_at":"2015-01-14T23:14:46Z","html_url":"https://github.com/test-kitchen/test-kitchen/pull/562#discussion_r22979321","pull_request_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/562","_links":{"self":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/comments/22979321"},"html":{"href":"https://github.com/test-kitchen/test-kitchen/pull/562#discussion_r22979321"},"pull_request":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/562"}}},"pull_request":{"url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/562","id":25890189,"html_url":"https://github.com/test-kitchen/test-kitchen/pull/562","diff_url":"https://github.com/test-kitchen/test-kitchen/pull/562.diff","patch_url":"https://github.com/test-kitchen/test-kitchen/pull/562.patch","issue_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/562","number":562,"state":"open","locked":false,"title":"winrm transport should use a single (or minimal) shell when transferring files. transfer via a zip file to optimize round trips","user":{"login":"mwrock","id":655165,"avatar_url":"https://avatars.githubusercontent.com/u/655165?v=3","gravatar_id":"","url":"https://api.github.com/users/mwrock","html_url":"https://github.com/mwrock","followers_url":"https://api.github.com/users/mwrock/followers","following_url":"https://api.github.com/users/mwrock/following{/other_user}","gists_url":"https://api.github.com/users/mwrock/gists{/gist_id}","starred_url":"https://api.github.com/users/mwrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwrock/subscriptions","organizations_url":"https://api.github.com/users/mwrock/orgs","repos_url":"https://api.github.com/users/mwrock/repos","events_url":"https://api.github.com/users/mwrock/events{/privacy}","received_events_url":"https://api.github.com/users/mwrock/received_events","type":"User","site_admin":false},"body":"This can significantly improve file upload performance over winrm. It eliminates a authentication handshake and winrs process creation for each call and compresses the files to a single contiguous block to rudece the number of round trips necessary to transfer the files. winrm limits roundtrips to 8k chunks do optimizing the payload is crucial.","created_at":"2014-12-11T10:38:04Z","updated_at":"2015-01-14T23:14:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2bcb86e74826d8ac10850d6773a88f985da99663","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/562/commits","review_comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/562/comments","review_comment_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/comments/{number}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/562/comments","statuses_url":"https://api.github.com/repos/test-kitchen/test-kitchen/statuses/ecb2a60efbfe6506a72e74c1c90be9edf9225a74","head":{"label":"mwrock:zip","ref":"zip","sha":"ecb2a60efbfe6506a72e74c1c90be9edf9225a74","user":{"login":"mwrock","id":655165,"avatar_url":"https://avatars.githubusercontent.com/u/655165?v=3","gravatar_id":"","url":"https://api.github.com/users/mwrock","html_url":"https://github.com/mwrock","followers_url":"https://api.github.com/users/mwrock/followers","following_url":"https://api.github.com/users/mwrock/following{/other_user}","gists_url":"https://api.github.com/users/mwrock/gists{/gist_id}","starred_url":"https://api.github.com/users/mwrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwrock/subscriptions","organizations_url":"https://api.github.com/users/mwrock/orgs","repos_url":"https://api.github.com/users/mwrock/repos","events_url":"https://api.github.com/users/mwrock/events{/privacy}","received_events_url":"https://api.github.com/users/mwrock/received_events","type":"User","site_admin":false},"repo":{"id":22159632,"name":"test-kitchen","full_name":"mwrock/test-kitchen","owner":{"login":"mwrock","id":655165,"avatar_url":"https://avatars.githubusercontent.com/u/655165?v=3","gravatar_id":"","url":"https://api.github.com/users/mwrock","html_url":"https://github.com/mwrock","followers_url":"https://api.github.com/users/mwrock/followers","following_url":"https://api.github.com/users/mwrock/following{/other_user}","gists_url":"https://api.github.com/users/mwrock/gists{/gist_id}","starred_url":"https://api.github.com/users/mwrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwrock/subscriptions","organizations_url":"https://api.github.com/users/mwrock/orgs","repos_url":"https://api.github.com/users/mwrock/repos","events_url":"https://api.github.com/users/mwrock/events{/privacy}","received_events_url":"https://api.github.com/users/mwrock/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mwrock/test-kitchen","description":"Test Kitchen is an integration tool for developing and testing infrastructure code and software on isolated target platforms.","fork":true,"url":"https://api.github.com/repos/mwrock/test-kitchen","forks_url":"https://api.github.com/repos/mwrock/test-kitchen/forks","keys_url":"https://api.github.com/repos/mwrock/test-kitchen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mwrock/test-kitchen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mwrock/test-kitchen/teams","hooks_url":"https://api.github.com/repos/mwrock/test-kitchen/hooks","issue_events_url":"https://api.github.com/repos/mwrock/test-kitchen/issues/events{/number}","events_url":"https://api.github.com/repos/mwrock/test-kitchen/events","assignees_url":"https://api.github.com/repos/mwrock/test-kitchen/assignees{/user}","branches_url":"https://api.github.com/repos/mwrock/test-kitchen/branches{/branch}","tags_url":"https://api.github.com/repos/mwrock/test-kitchen/tags","blobs_url":"https://api.github.com/repos/mwrock/test-kitchen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mwrock/test-kitchen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mwrock/test-kitchen/git/refs{/sha}","trees_url":"https://api.github.com/repos/mwrock/test-kitchen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mwrock/test-kitchen/statuses/{sha}","languages_url":"https://api.github.com/repos/mwrock/test-kitchen/languages","stargazers_url":"https://api.github.com/repos/mwrock/test-kitchen/stargazers","contributors_url":"https://api.github.com/repos/mwrock/test-kitchen/contributors","subscribers_url":"https://api.github.com/repos/mwrock/test-kitchen/subscribers","subscription_url":"https://api.github.com/repos/mwrock/test-kitchen/subscription","commits_url":"https://api.github.com/repos/mwrock/test-kitchen/commits{/sha}","git_commits_url":"https://api.github.com/repos/mwrock/test-kitchen/git/commits{/sha}","comments_url":"https://api.github.com/repos/mwrock/test-kitchen/comments{/number}","issue_comment_url":"https://api.github.com/repos/mwrock/test-kitchen/issues/comments/{number}","contents_url":"https://api.github.com/repos/mwrock/test-kitchen/contents/{+path}","compare_url":"https://api.github.com/repos/mwrock/test-kitchen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mwrock/test-kitchen/merges","archive_url":"https://api.github.com/repos/mwrock/test-kitchen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mwrock/test-kitchen/downloads","issues_url":"https://api.github.com/repos/mwrock/test-kitchen/issues{/number}","pulls_url":"https://api.github.com/repos/mwrock/test-kitchen/pulls{/number}","milestones_url":"https://api.github.com/repos/mwrock/test-kitchen/milestones{/number}","notifications_url":"https://api.github.com/repos/mwrock/test-kitchen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mwrock/test-kitchen/labels{/name}","releases_url":"https://api.github.com/repos/mwrock/test-kitchen/releases{/id}","created_at":"2014-07-23T16:09:49Z","updated_at":"2014-07-23T16:12:27Z","pushed_at":"2015-01-06T06:08:12Z","git_url":"git://github.com/mwrock/test-kitchen.git","ssh_url":"git@github.com:mwrock/test-kitchen.git","clone_url":"https://github.com/mwrock/test-kitchen.git","svn_url":"https://github.com/mwrock/test-kitchen","homepage":"http://kitchen.ci","size":2999,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"WinRM"}},"base":{"label":"test-kitchen:windows-guest-support","ref":"windows-guest-support","sha":"2eb44a177789aad33b668bc3ec1c6ebd784db767","user":{"login":"test-kitchen","id":5924439,"avatar_url":"https://avatars.githubusercontent.com/u/5924439?v=3","gravatar_id":"","url":"https://api.github.com/users/test-kitchen","html_url":"https://github.com/test-kitchen","followers_url":"https://api.github.com/users/test-kitchen/followers","following_url":"https://api.github.com/users/test-kitchen/following{/other_user}","gists_url":"https://api.github.com/users/test-kitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/test-kitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-kitchen/subscriptions","organizations_url":"https://api.github.com/users/test-kitchen/orgs","repos_url":"https://api.github.com/users/test-kitchen/repos","events_url":"https://api.github.com/users/test-kitchen/events{/privacy}","received_events_url":"https://api.github.com/users/test-kitchen/received_events","type":"Organization","site_admin":false},"repo":{"id":4137249,"name":"test-kitchen","full_name":"test-kitchen/test-kitchen","owner":{"login":"test-kitchen","id":5924439,"avatar_url":"https://avatars.githubusercontent.com/u/5924439?v=3","gravatar_id":"","url":"https://api.github.com/users/test-kitchen","html_url":"https://github.com/test-kitchen","followers_url":"https://api.github.com/users/test-kitchen/followers","following_url":"https://api.github.com/users/test-kitchen/following{/other_user}","gists_url":"https://api.github.com/users/test-kitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/test-kitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-kitchen/subscriptions","organizations_url":"https://api.github.com/users/test-kitchen/orgs","repos_url":"https://api.github.com/users/test-kitchen/repos","events_url":"https://api.github.com/users/test-kitchen/events{/privacy}","received_events_url":"https://api.github.com/users/test-kitchen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/test-kitchen/test-kitchen","description":"Test Kitchen is an integration tool for developing and testing infrastructure code and software on isolated target platforms.","fork":false,"url":"https://api.github.com/repos/test-kitchen/test-kitchen","forks_url":"https://api.github.com/repos/test-kitchen/test-kitchen/forks","keys_url":"https://api.github.com/repos/test-kitchen/test-kitchen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/test-kitchen/test-kitchen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/test-kitchen/test-kitchen/teams","hooks_url":"https://api.github.com/repos/test-kitchen/test-kitchen/hooks","issue_events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/events{/number}","events_url":"https://api.github.com/repos/test-kitchen/test-kitchen/events","assignees_url":"https://api.github.com/repos/test-kitchen/test-kitchen/assignees{/user}","branches_url":"https://api.github.com/repos/test-kitchen/test-kitchen/branches{/branch}","tags_url":"https://api.github.com/repos/test-kitchen/test-kitchen/tags","blobs_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/refs{/sha}","trees_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/test-kitchen/test-kitchen/statuses/{sha}","languages_url":"https://api.github.com/repos/test-kitchen/test-kitchen/languages","stargazers_url":"https://api.github.com/repos/test-kitchen/test-kitchen/stargazers","contributors_url":"https://api.github.com/repos/test-kitchen/test-kitchen/contributors","subscribers_url":"https://api.github.com/repos/test-kitchen/test-kitchen/subscribers","subscription_url":"https://api.github.com/repos/test-kitchen/test-kitchen/subscription","commits_url":"https://api.github.com/repos/test-kitchen/test-kitchen/commits{/sha}","git_commits_url":"https://api.github.com/repos/test-kitchen/test-kitchen/git/commits{/sha}","comments_url":"https://api.github.com/repos/test-kitchen/test-kitchen/comments{/number}","issue_comment_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/comments/{number}","contents_url":"https://api.github.com/repos/test-kitchen/test-kitchen/contents/{+path}","compare_url":"https://api.github.com/repos/test-kitchen/test-kitchen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/test-kitchen/test-kitchen/merges","archive_url":"https://api.github.com/repos/test-kitchen/test-kitchen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/test-kitchen/test-kitchen/downloads","issues_url":"https://api.github.com/repos/test-kitchen/test-kitchen/issues{/number}","pulls_url":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls{/number}","milestones_url":"https://api.github.com/repos/test-kitchen/test-kitchen/milestones{/number}","notifications_url":"https://api.github.com/repos/test-kitchen/test-kitchen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/test-kitchen/test-kitchen/labels{/name}","releases_url":"https://api.github.com/repos/test-kitchen/test-kitchen/releases{/id}","created_at":"2012-04-25T14:14:42Z","updated_at":"2015-01-13T20:00:34Z","pushed_at":"2014-12-20T17:49:40Z","git_url":"git://github.com/test-kitchen/test-kitchen.git","ssh_url":"git@github.com:test-kitchen/test-kitchen.git","clone_url":"https://github.com/test-kitchen/test-kitchen.git","svn_url":"https://github.com/test-kitchen/test-kitchen","homepage":"http://kitchen.ci","size":5672,"stargazers_count":690,"watchers_count":690,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":283,"mirror_url":null,"open_issues_count":136,"forks":283,"open_issues":136,"watchers":690,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/562"},"html":{"href":"https://github.com/test-kitchen/test-kitchen/pull/562"},"issue":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/562"},"comments":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/issues/562/comments"},"review_comments":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/562/comments"},"review_comment":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/pulls/562/commits"},"statuses":{"href":"https://api.github.com/repos/test-kitchen/test-kitchen/statuses/ecb2a60efbfe6506a72e74c1c90be9edf9225a74"}}}}