{"action":"created","comment":{"url":"https://api.github.com/repos/pantheon-systems/terminus/pulls/comments/79076894","id":79076894,"diff_hunk":"@@ -0,0 +1,173 @@\n+<?php\n+\n+namespace Pantheon\\Terminus\\UnitTests\\Commands\\Connection;\n+\n+use Consolidation\\OutputFormatters\\StructuredData\\RowsOfFields;\n+use Pantheon\\Terminus\\Commands\\Connection\\InfoCommand;\n+use Pantheon\\Terminus\\Config;\n+\n+use Prophecy\\Prophet;\n+use Terminus\\Models\\Environment;\n+use Terminus\\Models\\Site;\n+use VCR\\VCR;\n+\n+/**\n+ * Test suite for class for Pantheon\\Terminus\\Commands\\Connection\\InfoCommand\n+ */\n+class InfoCommandTest extends ConnectionCommandTest\n+{\n+    private $prophet;\n+\n+    /**\n+     * Test suite setup\n+     *\n+     * @return void\n+     */\n+    protected function setup()\n+    {\n+        parent::setUp();\n+\n+        // TODO: (ajbarry) Where is the appropriate place to configure VCR mode?\n+        // Picking up 'new_episodes' somewhere\n+        VCR::configure()->setMode('none');\n+\n+        $this->command = new InfoCommand(new Config());\n+        $this->command->setLogger($this->logger);\n+        $this->prophet = new Prophet;\n+    }\n+\n+    protected function tearDown()\n+    {\n+        parent::tearDown();\n+\n+        $this->prophet->checkPredictions();","path":"tests/new_unit_tests/Commands/Connection/InfoCommandTest.php","position":43,"original_position":43,"commit_id":"040c2a19eba8d7145d4bc57f8e1e47722f0c0512","original_commit_id":"040c2a19eba8d7145d4bc57f8e1e47722f0c0512","user":{"login":"TeslaDethray","id":868204,"avatar_url":"https://avatars.githubusercontent.com/u/868204?v=3","gravatar_id":"","url":"https://api.github.com/users/TeslaDethray","html_url":"https://github.com/TeslaDethray","followers_url":"https://api.github.com/users/TeslaDethray/followers","following_url":"https://api.github.com/users/TeslaDethray/following{/other_user}","gists_url":"https://api.github.com/users/TeslaDethray/gists{/gist_id}","starred_url":"https://api.github.com/users/TeslaDethray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeslaDethray/subscriptions","organizations_url":"https://api.github.com/users/TeslaDethray/orgs","repos_url":"https://api.github.com/users/TeslaDethray/repos","events_url":"https://api.github.com/users/TeslaDethray/events{/privacy}","received_events_url":"https://api.github.com/users/TeslaDethray/received_events","type":"User","site_admin":false},"body":"Prophet looks snazzy. I'm going to give it a whirl on my next command.","created_at":"2016-09-15T22:36:01Z","updated_at":"2016-09-15T22:36:01Z","html_url":"https://github.com/pantheon-systems/terminus/pull/1183#discussion_r79076894","pull_request_url":"https://api.github.com/repos/pantheon-systems/terminus/pulls/1183","_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/terminus/pulls/comments/79076894"},"html":{"href":"https://github.com/pantheon-systems/terminus/pull/1183#discussion_r79076894"},"pull_request":{"href":"https://api.github.com/repos/pantheon-systems/terminus/pulls/1183"}}},"pull_request":{"url":"https://api.github.com/repos/pantheon-systems/terminus/pulls/1183","id":84700613,"html_url":"https://github.com/pantheon-systems/terminus/pull/1183","diff_url":"https://github.com/pantheon-systems/terminus/pull/1183.diff","patch_url":"https://github.com/pantheon-systems/terminus/pull/1183.patch","issue_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/1183","number":1183,"state":"open","locked":false,"title":"AL-517 connection:info","user":{"login":"ajbarry","id":359188,"avatar_url":"https://avatars.githubusercontent.com/u/359188?v=3","gravatar_id":"","url":"https://api.github.com/users/ajbarry","html_url":"https://github.com/ajbarry","followers_url":"https://api.github.com/users/ajbarry/followers","following_url":"https://api.github.com/users/ajbarry/following{/other_user}","gists_url":"https://api.github.com/users/ajbarry/gists{/gist_id}","starred_url":"https://api.github.com/users/ajbarry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajbarry/subscriptions","organizations_url":"https://api.github.com/users/ajbarry/orgs","repos_url":"https://api.github.com/users/ajbarry/repos","events_url":"https://api.github.com/users/ajbarry/events{/privacy}","received_events_url":"https://api.github.com/users/ajbarry/received_events","type":"User","site_admin":false},"body":"Adds the `connection:info` command.\r\n\r\n**Example Output**\r\n```\r\n❯ bin/terminus.php connection:info evil-bunny.dev git_command \r\n ------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------- \r\n  Parameter     Connection Info                                                                                                                                                    \r\n ------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------- \r\n  git_command   git clone ssh://codeserver.dev.e6c5fc5b-87cd-450d-9ede-69cd22c5a113@codeserver.dev.e6c5fc5b-87cd-450d-9ede-69cd22c5a113.drush.in:2222/~/repository.git evil-bunny  \r\n ------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------- \r\n```\r\n**Help Output**\r\n```\r\n❯ bin/terminus.php --help connection:info    \r\nUsage:\r\n  connection:info [options] [--] <environment> [<filter>]\r\n\r\nArguments:\r\n  environment                          Name of the environment to retrieve\r\n  filter                               Parameter filter (optional)\r\n\r\nOptions:\r\n      --format[=FORMAT]                 [default: \"table\"]\r\n      --fields[=FIELDS]                 [default: \"param,value\"]\r\n\r\nHelp:\r\n  Retrieve connection info for a specific environment such as git, sftp, mysql, redis\r\n```\r\n\r\nNote:\r\nBehat tests will be included a subsequent PR before AL-517 is complete","created_at":"2016-09-09T18:55:49Z","updated_at":"2016-09-15T22:36:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99895d1cce4bbbf7428e5eba9594c8b9c627bb3a","assignee":{"login":"ajbarry","id":359188,"avatar_url":"https://avatars.githubusercontent.com/u/359188?v=3","gravatar_id":"","url":"https://api.github.com/users/ajbarry","html_url":"https://github.com/ajbarry","followers_url":"https://api.github.com/users/ajbarry/followers","following_url":"https://api.github.com/users/ajbarry/following{/other_user}","gists_url":"https://api.github.com/users/ajbarry/gists{/gist_id}","starred_url":"https://api.github.com/users/ajbarry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajbarry/subscriptions","organizations_url":"https://api.github.com/users/ajbarry/orgs","repos_url":"https://api.github.com/users/ajbarry/repos","events_url":"https://api.github.com/users/ajbarry/events{/privacy}","received_events_url":"https://api.github.com/users/ajbarry/received_events","type":"User","site_admin":false},"assignees":[{"login":"ajbarry","id":359188,"avatar_url":"https://avatars.githubusercontent.com/u/359188?v=3","gravatar_id":"","url":"https://api.github.com/users/ajbarry","html_url":"https://github.com/ajbarry","followers_url":"https://api.github.com/users/ajbarry/followers","following_url":"https://api.github.com/users/ajbarry/following{/other_user}","gists_url":"https://api.github.com/users/ajbarry/gists{/gist_id}","starred_url":"https://api.github.com/users/ajbarry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajbarry/subscriptions","organizations_url":"https://api.github.com/users/ajbarry/orgs","repos_url":"https://api.github.com/users/ajbarry/repos","events_url":"https://api.github.com/users/ajbarry/events{/privacy}","received_events_url":"https://api.github.com/users/ajbarry/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pantheon-systems/terminus/pulls/1183/commits","review_comments_url":"https://api.github.com/repos/pantheon-systems/terminus/pulls/1183/comments","review_comment_url":"https://api.github.com/repos/pantheon-systems/terminus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/1183/comments","statuses_url":"https://api.github.com/repos/pantheon-systems/terminus/statuses/040c2a19eba8d7145d4bc57f8e1e47722f0c0512","head":{"label":"pantheon-systems:feature/AL-517_connection_info","ref":"feature/AL-517_connection_info","sha":"040c2a19eba8d7145d4bc57f8e1e47722f0c0512","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":17075662,"name":"terminus","full_name":"pantheon-systems/terminus","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/terminus","description":"The Pantheon CLI — a standalone utility for performing operations on the Pantheon Platform","fork":false,"url":"https://api.github.com/repos/pantheon-systems/terminus","forks_url":"https://api.github.com/repos/pantheon-systems/terminus/forks","keys_url":"https://api.github.com/repos/pantheon-systems/terminus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/terminus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/terminus/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/terminus/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/terminus/events","assignees_url":"https://api.github.com/repos/pantheon-systems/terminus/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/terminus/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/terminus/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/terminus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/terminus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/terminus/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/terminus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/terminus/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/terminus/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/terminus/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/terminus/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/terminus/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/terminus/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/terminus/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/terminus/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/terminus/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/terminus/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/terminus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/terminus/merges","archive_url":"https://api.github.com/repos/pantheon-systems/terminus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/terminus/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/terminus/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/terminus/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/terminus/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/terminus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/terminus/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/terminus/releases{/id}","deployments_url":"https://api.github.com/repos/pantheon-systems/terminus/deployments","created_at":"2014-02-22T01:37:07Z","updated_at":"2016-09-13T08:27:56Z","pushed_at":"2016-09-15T22:21:10Z","git_url":"git://github.com/pantheon-systems/terminus.git","ssh_url":"git@github.com:pantheon-systems/terminus.git","clone_url":"https://github.com/pantheon-systems/terminus.git","svn_url":"https://github.com/pantheon-systems/terminus","homepage":"https://pantheon.io","size":9129,"stargazers_count":151,"watchers_count":151,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"open_issues_count":53,"forks":97,"open_issues":53,"watchers":151,"default_branch":"master"}},"base":{"label":"pantheon-systems:master","ref":"master","sha":"57a056837fd8c8819394f30e961ad3b61c49c154","user":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":17075662,"name":"terminus","full_name":"pantheon-systems/terminus","owner":{"login":"pantheon-systems","id":513357,"avatar_url":"https://avatars.githubusercontent.com/u/513357?v=3","gravatar_id":"","url":"https://api.github.com/users/pantheon-systems","html_url":"https://github.com/pantheon-systems","followers_url":"https://api.github.com/users/pantheon-systems/followers","following_url":"https://api.github.com/users/pantheon-systems/following{/other_user}","gists_url":"https://api.github.com/users/pantheon-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/pantheon-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pantheon-systems/subscriptions","organizations_url":"https://api.github.com/users/pantheon-systems/orgs","repos_url":"https://api.github.com/users/pantheon-systems/repos","events_url":"https://api.github.com/users/pantheon-systems/events{/privacy}","received_events_url":"https://api.github.com/users/pantheon-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pantheon-systems/terminus","description":"The Pantheon CLI — a standalone utility for performing operations on the Pantheon Platform","fork":false,"url":"https://api.github.com/repos/pantheon-systems/terminus","forks_url":"https://api.github.com/repos/pantheon-systems/terminus/forks","keys_url":"https://api.github.com/repos/pantheon-systems/terminus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pantheon-systems/terminus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pantheon-systems/terminus/teams","hooks_url":"https://api.github.com/repos/pantheon-systems/terminus/hooks","issue_events_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/events{/number}","events_url":"https://api.github.com/repos/pantheon-systems/terminus/events","assignees_url":"https://api.github.com/repos/pantheon-systems/terminus/assignees{/user}","branches_url":"https://api.github.com/repos/pantheon-systems/terminus/branches{/branch}","tags_url":"https://api.github.com/repos/pantheon-systems/terminus/tags","blobs_url":"https://api.github.com/repos/pantheon-systems/terminus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pantheon-systems/terminus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pantheon-systems/terminus/git/refs{/sha}","trees_url":"https://api.github.com/repos/pantheon-systems/terminus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pantheon-systems/terminus/statuses/{sha}","languages_url":"https://api.github.com/repos/pantheon-systems/terminus/languages","stargazers_url":"https://api.github.com/repos/pantheon-systems/terminus/stargazers","contributors_url":"https://api.github.com/repos/pantheon-systems/terminus/contributors","subscribers_url":"https://api.github.com/repos/pantheon-systems/terminus/subscribers","subscription_url":"https://api.github.com/repos/pantheon-systems/terminus/subscription","commits_url":"https://api.github.com/repos/pantheon-systems/terminus/commits{/sha}","git_commits_url":"https://api.github.com/repos/pantheon-systems/terminus/git/commits{/sha}","comments_url":"https://api.github.com/repos/pantheon-systems/terminus/comments{/number}","issue_comment_url":"https://api.github.com/repos/pantheon-systems/terminus/issues/comments{/number}","contents_url":"https://api.github.com/repos/pantheon-systems/terminus/contents/{+path}","compare_url":"https://api.github.com/repos/pantheon-systems/terminus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pantheon-systems/terminus/merges","archive_url":"https://api.github.com/repos/pantheon-systems/terminus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pantheon-systems/terminus/downloads","issues_url":"https://api.github.com/repos/pantheon-systems/terminus/issues{/number}","pulls_url":"https://api.github.com/repos/pantheon-systems/terminus/pulls{/number}","milestones_url":"https://api.github.com/repos/pantheon-systems/terminus/milestones{/number}","notifications_url":"https://api.github.com/repos/pantheon-systems/terminus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pantheon-systems/terminus/labels{/name}","releases_url":"https://api.github.com/repos/pantheon-systems/terminus/releases{/id}","deployments_url":"https://api.github.com/repos/pantheon-systems/terminus/deployments","created_at":"2014-02-22T01:37:07Z","updated_at":"2016-09-13T08:27:56Z","pushed_at":"2016-09-15T22:21:10Z","git_url":"git://github.com/pantheon-systems/terminus.git","ssh_url":"git@github.com:pantheon-systems/terminus.git","clone_url":"https://github.com/pantheon-systems/terminus.git","svn_url":"https://github.com/pantheon-systems/terminus","homepage":"https://pantheon.io","size":9129,"stargazers_count":151,"watchers_count":151,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"open_issues_count":53,"forks":97,"open_issues":53,"watchers":151,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pantheon-systems/terminus/pulls/1183"},"html":{"href":"https://github.com/pantheon-systems/terminus/pull/1183"},"issue":{"href":"https://api.github.com/repos/pantheon-systems/terminus/issues/1183"},"comments":{"href":"https://api.github.com/repos/pantheon-systems/terminus/issues/1183/comments"},"review_comments":{"href":"https://api.github.com/repos/pantheon-systems/terminus/pulls/1183/comments"},"review_comment":{"href":"https://api.github.com/repos/pantheon-systems/terminus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pantheon-systems/terminus/pulls/1183/commits"},"statuses":{"href":"https://api.github.com/repos/pantheon-systems/terminus/statuses/040c2a19eba8d7145d4bc57f8e1e47722f0c0512"}}}}
{"actor":{"display_login":"TeslaDethray"}}