{"action":"created","comment":{"url":"https://api.github.com/repos/spmjs/node-scp2/pulls/comments/65004284","id":65004284,"diff_hunk":"@@ -298,6 +298,16 @@ Client.prototype.download = function(src, dest, callback) {\n   });\n };\n \n+// Tests if the config is correct\n+// callback(err, isOk/*true/false*/)\n+Client.prototype.testConnection = function(callback) {","path":"lib/client.js","position":6,"original_position":6,"commit_id":"ffee553f2baae48379d194e59bfe33aa1dafaa75","original_commit_id":"ffee553f2baae48379d194e59bfe33aa1dafaa75","user":{"login":"popomore","id":360661,"avatar_url":"https://avatars.githubusercontent.com/u/360661?v=3","gravatar_id":"","url":"https://api.github.com/users/popomore","html_url":"https://github.com/popomore","followers_url":"https://api.github.com/users/popomore/followers","following_url":"https://api.github.com/users/popomore/following{/other_user}","gists_url":"https://api.github.com/users/popomore/gists{/gist_id}","starred_url":"https://api.github.com/users/popomore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/popomore/subscriptions","organizations_url":"https://api.github.com/users/popomore/orgs","repos_url":"https://api.github.com/users/popomore/repos","events_url":"https://api.github.com/users/popomore/events{/privacy}","received_events_url":"https://api.github.com/users/popomore/received_events","type":"User","site_admin":false},"body":"Why use sftp directly?","created_at":"2016-05-29T12:58:12Z","updated_at":"2016-05-29T12:58:12Z","html_url":"https://github.com/spmjs/node-scp2/pull/65#discussion_r65004284","pull_request_url":"https://api.github.com/repos/spmjs/node-scp2/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/spmjs/node-scp2/pulls/comments/65004284"},"html":{"href":"https://github.com/spmjs/node-scp2/pull/65#discussion_r65004284"},"pull_request":{"href":"https://api.github.com/repos/spmjs/node-scp2/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/spmjs/node-scp2/pulls/65","id":63538687,"html_url":"https://github.com/spmjs/node-scp2/pull/65","diff_url":"https://github.com/spmjs/node-scp2/pull/65.diff","patch_url":"https://github.com/spmjs/node-scp2/pull/65.patch","issue_url":"https://api.github.com/repos/spmjs/node-scp2/issues/65","number":65,"state":"open","locked":false,"title":"Added method testConnection on Client","user":{"login":"alemonteiro","id":2397555,"avatar_url":"https://avatars.githubusercontent.com/u/2397555?v=3","gravatar_id":"","url":"https://api.github.com/users/alemonteiro","html_url":"https://github.com/alemonteiro","followers_url":"https://api.github.com/users/alemonteiro/followers","following_url":"https://api.github.com/users/alemonteiro/following{/other_user}","gists_url":"https://api.github.com/users/alemonteiro/gists{/gist_id}","starred_url":"https://api.github.com/users/alemonteiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alemonteiro/subscriptions","organizations_url":"https://api.github.com/users/alemonteiro/orgs","repos_url":"https://api.github.com/users/alemonteiro/repos","events_url":"https://api.github.com/users/alemonteiro/events{/privacy}","received_events_url":"https://api.github.com/users/alemonteiro/received_events","type":"User","site_admin":false},"body":"Hi,\r\ni added the method testConnection on the Client prototype to be used on sftp-upload for brackets to check if the inputed user config are correct.\r\n\r\n","created_at":"2016-03-21T09:44:51Z","updated_at":"2016-05-29T12:58:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edfb2dde8eaf39dbd2fb2fb37dd7f2d8d9e9ef5e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spmjs/node-scp2/pulls/65/commits","review_comments_url":"https://api.github.com/repos/spmjs/node-scp2/pulls/65/comments","review_comment_url":"https://api.github.com/repos/spmjs/node-scp2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spmjs/node-scp2/issues/65/comments","statuses_url":"https://api.github.com/repos/spmjs/node-scp2/statuses/ffee553f2baae48379d194e59bfe33aa1dafaa75","head":{"label":"alemonteiro:master","ref":"master","sha":"ffee553f2baae48379d194e59bfe33aa1dafaa75","user":{"login":"alemonteiro","id":2397555,"avatar_url":"https://avatars.githubusercontent.com/u/2397555?v=3","gravatar_id":"","url":"https://api.github.com/users/alemonteiro","html_url":"https://github.com/alemonteiro","followers_url":"https://api.github.com/users/alemonteiro/followers","following_url":"https://api.github.com/users/alemonteiro/following{/other_user}","gists_url":"https://api.github.com/users/alemonteiro/gists{/gist_id}","starred_url":"https://api.github.com/users/alemonteiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alemonteiro/subscriptions","organizations_url":"https://api.github.com/users/alemonteiro/orgs","repos_url":"https://api.github.com/users/alemonteiro/repos","events_url":"https://api.github.com/users/alemonteiro/events{/privacy}","received_events_url":"https://api.github.com/users/alemonteiro/received_events","type":"User","site_admin":false},"repo":{"id":54374391,"name":"node-scp2","full_name":"alemonteiro/node-scp2","owner":{"login":"alemonteiro","id":2397555,"avatar_url":"https://avatars.githubusercontent.com/u/2397555?v=3","gravatar_id":"","url":"https://api.github.com/users/alemonteiro","html_url":"https://github.com/alemonteiro","followers_url":"https://api.github.com/users/alemonteiro/followers","following_url":"https://api.github.com/users/alemonteiro/following{/other_user}","gists_url":"https://api.github.com/users/alemonteiro/gists{/gist_id}","starred_url":"https://api.github.com/users/alemonteiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alemonteiro/subscriptions","organizations_url":"https://api.github.com/users/alemonteiro/orgs","repos_url":"https://api.github.com/users/alemonteiro/repos","events_url":"https://api.github.com/users/alemonteiro/events{/privacy}","received_events_url":"https://api.github.com/users/alemonteiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alemonteiro/node-scp2","description":"A pure javascript scp program based on ssh2.","fork":true,"url":"https://api.github.com/repos/alemonteiro/node-scp2","forks_url":"https://api.github.com/repos/alemonteiro/node-scp2/forks","keys_url":"https://api.github.com/repos/alemonteiro/node-scp2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alemonteiro/node-scp2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alemonteiro/node-scp2/teams","hooks_url":"https://api.github.com/repos/alemonteiro/node-scp2/hooks","issue_events_url":"https://api.github.com/repos/alemonteiro/node-scp2/issues/events{/number}","events_url":"https://api.github.com/repos/alemonteiro/node-scp2/events","assignees_url":"https://api.github.com/repos/alemonteiro/node-scp2/assignees{/user}","branches_url":"https://api.github.com/repos/alemonteiro/node-scp2/branches{/branch}","tags_url":"https://api.github.com/repos/alemonteiro/node-scp2/tags","blobs_url":"https://api.github.com/repos/alemonteiro/node-scp2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alemonteiro/node-scp2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alemonteiro/node-scp2/git/refs{/sha}","trees_url":"https://api.github.com/repos/alemonteiro/node-scp2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alemonteiro/node-scp2/statuses/{sha}","languages_url":"https://api.github.com/repos/alemonteiro/node-scp2/languages","stargazers_url":"https://api.github.com/repos/alemonteiro/node-scp2/stargazers","contributors_url":"https://api.github.com/repos/alemonteiro/node-scp2/contributors","subscribers_url":"https://api.github.com/repos/alemonteiro/node-scp2/subscribers","subscription_url":"https://api.github.com/repos/alemonteiro/node-scp2/subscription","commits_url":"https://api.github.com/repos/alemonteiro/node-scp2/commits{/sha}","git_commits_url":"https://api.github.com/repos/alemonteiro/node-scp2/git/commits{/sha}","comments_url":"https://api.github.com/repos/alemonteiro/node-scp2/comments{/number}","issue_comment_url":"https://api.github.com/repos/alemonteiro/node-scp2/issues/comments{/number}","contents_url":"https://api.github.com/repos/alemonteiro/node-scp2/contents/{+path}","compare_url":"https://api.github.com/repos/alemonteiro/node-scp2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alemonteiro/node-scp2/merges","archive_url":"https://api.github.com/repos/alemonteiro/node-scp2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alemonteiro/node-scp2/downloads","issues_url":"https://api.github.com/repos/alemonteiro/node-scp2/issues{/number}","pulls_url":"https://api.github.com/repos/alemonteiro/node-scp2/pulls{/number}","milestones_url":"https://api.github.com/repos/alemonteiro/node-scp2/milestones{/number}","notifications_url":"https://api.github.com/repos/alemonteiro/node-scp2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alemonteiro/node-scp2/labels{/name}","releases_url":"https://api.github.com/repos/alemonteiro/node-scp2/releases{/id}","deployments_url":"https://api.github.com/repos/alemonteiro/node-scp2/deployments","created_at":"2016-03-21T09:08:30Z","updated_at":"2016-03-21T09:08:31Z","pushed_at":"2016-03-21T09:51:50Z","git_url":"git://github.com/alemonteiro/node-scp2.git","ssh_url":"git@github.com:alemonteiro/node-scp2.git","clone_url":"https://github.com/alemonteiro/node-scp2.git","svn_url":"https://github.com/alemonteiro/node-scp2","homepage":"","size":45,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"master"}},"base":{"label":"spmjs:master","ref":"master","sha":"b27058d88eb1f52de3c1358f184c958dee4ee562","user":{"login":"spmjs","id":2740060,"avatar_url":"https://avatars.githubusercontent.com/u/2740060?v=3","gravatar_id":"","url":"https://api.github.com/users/spmjs","html_url":"https://github.com/spmjs","followers_url":"https://api.github.com/users/spmjs/followers","following_url":"https://api.github.com/users/spmjs/following{/other_user}","gists_url":"https://api.github.com/users/spmjs/gists{/gist_id}","starred_url":"https://api.github.com/users/spmjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spmjs/subscriptions","organizations_url":"https://api.github.com/users/spmjs/orgs","repos_url":"https://api.github.com/users/spmjs/repos","events_url":"https://api.github.com/users/spmjs/events{/privacy}","received_events_url":"https://api.github.com/users/spmjs/received_events","type":"Organization","site_admin":false},"repo":{"id":8578536,"name":"node-scp2","full_name":"spmjs/node-scp2","owner":{"login":"spmjs","id":2740060,"avatar_url":"https://avatars.githubusercontent.com/u/2740060?v=3","gravatar_id":"","url":"https://api.github.com/users/spmjs","html_url":"https://github.com/spmjs","followers_url":"https://api.github.com/users/spmjs/followers","following_url":"https://api.github.com/users/spmjs/following{/other_user}","gists_url":"https://api.github.com/users/spmjs/gists{/gist_id}","starred_url":"https://api.github.com/users/spmjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spmjs/subscriptions","organizations_url":"https://api.github.com/users/spmjs/orgs","repos_url":"https://api.github.com/users/spmjs/repos","events_url":"https://api.github.com/users/spmjs/events{/privacy}","received_events_url":"https://api.github.com/users/spmjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spmjs/node-scp2","description":"A pure javascript scp program based on ssh2.","fork":false,"url":"https://api.github.com/repos/spmjs/node-scp2","forks_url":"https://api.github.com/repos/spmjs/node-scp2/forks","keys_url":"https://api.github.com/repos/spmjs/node-scp2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spmjs/node-scp2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spmjs/node-scp2/teams","hooks_url":"https://api.github.com/repos/spmjs/node-scp2/hooks","issue_events_url":"https://api.github.com/repos/spmjs/node-scp2/issues/events{/number}","events_url":"https://api.github.com/repos/spmjs/node-scp2/events","assignees_url":"https://api.github.com/repos/spmjs/node-scp2/assignees{/user}","branches_url":"https://api.github.com/repos/spmjs/node-scp2/branches{/branch}","tags_url":"https://api.github.com/repos/spmjs/node-scp2/tags","blobs_url":"https://api.github.com/repos/spmjs/node-scp2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spmjs/node-scp2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spmjs/node-scp2/git/refs{/sha}","trees_url":"https://api.github.com/repos/spmjs/node-scp2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spmjs/node-scp2/statuses/{sha}","languages_url":"https://api.github.com/repos/spmjs/node-scp2/languages","stargazers_url":"https://api.github.com/repos/spmjs/node-scp2/stargazers","contributors_url":"https://api.github.com/repos/spmjs/node-scp2/contributors","subscribers_url":"https://api.github.com/repos/spmjs/node-scp2/subscribers","subscription_url":"https://api.github.com/repos/spmjs/node-scp2/subscription","commits_url":"https://api.github.com/repos/spmjs/node-scp2/commits{/sha}","git_commits_url":"https://api.github.com/repos/spmjs/node-scp2/git/commits{/sha}","comments_url":"https://api.github.com/repos/spmjs/node-scp2/comments{/number}","issue_comment_url":"https://api.github.com/repos/spmjs/node-scp2/issues/comments{/number}","contents_url":"https://api.github.com/repos/spmjs/node-scp2/contents/{+path}","compare_url":"https://api.github.com/repos/spmjs/node-scp2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spmjs/node-scp2/merges","archive_url":"https://api.github.com/repos/spmjs/node-scp2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spmjs/node-scp2/downloads","issues_url":"https://api.github.com/repos/spmjs/node-scp2/issues{/number}","pulls_url":"https://api.github.com/repos/spmjs/node-scp2/pulls{/number}","milestones_url":"https://api.github.com/repos/spmjs/node-scp2/milestones{/number}","notifications_url":"https://api.github.com/repos/spmjs/node-scp2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spmjs/node-scp2/labels{/name}","releases_url":"https://api.github.com/repos/spmjs/node-scp2/releases{/id}","deployments_url":"https://api.github.com/repos/spmjs/node-scp2/deployments","created_at":"2013-03-05T11:41:53Z","updated_at":"2016-05-04T10:18:04Z","pushed_at":"2016-05-29T11:04:47Z","git_url":"git://github.com/spmjs/node-scp2.git","ssh_url":"git@github.com:spmjs/node-scp2.git","clone_url":"https://github.com/spmjs/node-scp2.git","svn_url":"https://github.com/spmjs/node-scp2","homepage":"","size":66,"stargazers_count":120,"watchers_count":120,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":37,"forks":49,"open_issues":37,"watchers":120,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spmjs/node-scp2/pulls/65"},"html":{"href":"https://github.com/spmjs/node-scp2/pull/65"},"issue":{"href":"https://api.github.com/repos/spmjs/node-scp2/issues/65"},"comments":{"href":"https://api.github.com/repos/spmjs/node-scp2/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/spmjs/node-scp2/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/spmjs/node-scp2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spmjs/node-scp2/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/spmjs/node-scp2/statuses/ffee553f2baae48379d194e59bfe33aa1dafaa75"}}}}
{"actor":{"display_login":"popomore"}}