{"action":"created","comment":{"url":"https://api.github.com/repos/ffffranklin/scotty/pulls/comments/39596595","id":39596595,"diff_hunk":"@@ -58,6 +58,18 @@ var scotty = function scotty() {\n       var command = format('rm -rf %s', opts.cloneRepoPath);\n \n       return runCommand(command, 'Cleaning Up');\n+    },\n+    remoteDelete: function(cloneRepoPath) {\n+      var cmd = 'ssh -p%d root@%s rm -rf %s';\n+      var port = env.port;\n+      var host = env.host;\n+      var targetPath = format('%s/%s', env.repoPath, cloneRepoPath);\n+      var command = format(cmd, port, host, targetPath);\n+\n+      exec(command, function(err, data) {\n+        log('Deleting Repo');","path":"index.js","position":13,"original_position":13,"commit_id":"cf82432642fc5411911a23cbc873eb8edbbeca4f","original_commit_id":"cf82432642fc5411911a23cbc873eb8edbbeca4f","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Mixed double and single quotes.","created_at":"2015-09-16T06:12:11Z","updated_at":"2015-09-16T06:12:11Z","html_url":"https://github.com/ffffranklin/scotty/pull/9#discussion_r39596595","pull_request_url":"https://api.github.com/repos/ffffranklin/scotty/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/ffffranklin/scotty/pulls/comments/39596595"},"html":{"href":"https://github.com/ffffranklin/scotty/pull/9#discussion_r39596595"},"pull_request":{"href":"https://api.github.com/repos/ffffranklin/scotty/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/ffffranklin/scotty/pulls/9","id":45134706,"html_url":"https://github.com/ffffranklin/scotty/pull/9","diff_url":"https://github.com/ffffranklin/scotty/pull/9.diff","patch_url":"https://github.com/ffffranklin/scotty/pull/9.patch","issue_url":"https://api.github.com/repos/ffffranklin/scotty/issues/9","number":9,"state":"open","locked":false,"title":"Adding Destroy method","user":{"login":"ffffranklin","id":1546561,"avatar_url":"https://avatars.githubusercontent.com/u/1546561?v=3","gravatar_id":"","url":"https://api.github.com/users/ffffranklin","html_url":"https://github.com/ffffranklin","followers_url":"https://api.github.com/users/ffffranklin/followers","following_url":"https://api.github.com/users/ffffranklin/following{/other_user}","gists_url":"https://api.github.com/users/ffffranklin/gists{/gist_id}","starred_url":"https://api.github.com/users/ffffranklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffffranklin/subscriptions","organizations_url":"https://api.github.com/users/ffffranklin/orgs","repos_url":"https://api.github.com/users/ffffranklin/repos","events_url":"https://api.github.com/users/ffffranklin/events{/privacy}","received_events_url":"https://api.github.com/users/ffffranklin/received_events","type":"User","site_admin":false},"body":"This closes #8 ","created_at":"2015-09-16T06:12:03Z","updated_at":"2015-09-16T06:12:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07afc6151aef9156bb06be51a4c64957aeb832da","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ffffranklin/scotty/pulls/9/commits","review_comments_url":"https://api.github.com/repos/ffffranklin/scotty/pulls/9/comments","review_comment_url":"https://api.github.com/repos/ffffranklin/scotty/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ffffranklin/scotty/issues/9/comments","statuses_url":"https://api.github.com/repos/ffffranklin/scotty/statuses/cf82432642fc5411911a23cbc873eb8edbbeca4f","head":{"label":"ffffranklin:feature/8-delete","ref":"feature/8-delete","sha":"cf82432642fc5411911a23cbc873eb8edbbeca4f","user":{"login":"ffffranklin","id":1546561,"avatar_url":"https://avatars.githubusercontent.com/u/1546561?v=3","gravatar_id":"","url":"https://api.github.com/users/ffffranklin","html_url":"https://github.com/ffffranklin","followers_url":"https://api.github.com/users/ffffranklin/followers","following_url":"https://api.github.com/users/ffffranklin/following{/other_user}","gists_url":"https://api.github.com/users/ffffranklin/gists{/gist_id}","starred_url":"https://api.github.com/users/ffffranklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffffranklin/subscriptions","organizations_url":"https://api.github.com/users/ffffranklin/orgs","repos_url":"https://api.github.com/users/ffffranklin/repos","events_url":"https://api.github.com/users/ffffranklin/events{/privacy}","received_events_url":"https://api.github.com/users/ffffranklin/received_events","type":"User","site_admin":false},"repo":{"id":42225288,"name":"scotty","full_name":"ffffranklin/scotty","owner":{"login":"ffffranklin","id":1546561,"avatar_url":"https://avatars.githubusercontent.com/u/1546561?v=3","gravatar_id":"","url":"https://api.github.com/users/ffffranklin","html_url":"https://github.com/ffffranklin","followers_url":"https://api.github.com/users/ffffranklin/followers","following_url":"https://api.github.com/users/ffffranklin/following{/other_user}","gists_url":"https://api.github.com/users/ffffranklin/gists{/gist_id}","starred_url":"https://api.github.com/users/ffffranklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffffranklin/subscriptions","organizations_url":"https://api.github.com/users/ffffranklin/orgs","repos_url":"https://api.github.com/users/ffffranklin/repos","events_url":"https://api.github.com/users/ffffranklin/events{/privacy}","received_events_url":"https://api.github.com/users/ffffranklin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ffffranklin/scotty","description":"Synology Diskstation Git Repo Manager","fork":false,"url":"https://api.github.com/repos/ffffranklin/scotty","forks_url":"https://api.github.com/repos/ffffranklin/scotty/forks","keys_url":"https://api.github.com/repos/ffffranklin/scotty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ffffranklin/scotty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ffffranklin/scotty/teams","hooks_url":"https://api.github.com/repos/ffffranklin/scotty/hooks","issue_events_url":"https://api.github.com/repos/ffffranklin/scotty/issues/events{/number}","events_url":"https://api.github.com/repos/ffffranklin/scotty/events","assignees_url":"https://api.github.com/repos/ffffranklin/scotty/assignees{/user}","branches_url":"https://api.github.com/repos/ffffranklin/scotty/branches{/branch}","tags_url":"https://api.github.com/repos/ffffranklin/scotty/tags","blobs_url":"https://api.github.com/repos/ffffranklin/scotty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ffffranklin/scotty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ffffranklin/scotty/git/refs{/sha}","trees_url":"https://api.github.com/repos/ffffranklin/scotty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ffffranklin/scotty/statuses/{sha}","languages_url":"https://api.github.com/repos/ffffranklin/scotty/languages","stargazers_url":"https://api.github.com/repos/ffffranklin/scotty/stargazers","contributors_url":"https://api.github.com/repos/ffffranklin/scotty/contributors","subscribers_url":"https://api.github.com/repos/ffffranklin/scotty/subscribers","subscription_url":"https://api.github.com/repos/ffffranklin/scotty/subscription","commits_url":"https://api.github.com/repos/ffffranklin/scotty/commits{/sha}","git_commits_url":"https://api.github.com/repos/ffffranklin/scotty/git/commits{/sha}","comments_url":"https://api.github.com/repos/ffffranklin/scotty/comments{/number}","issue_comment_url":"https://api.github.com/repos/ffffranklin/scotty/issues/comments{/number}","contents_url":"https://api.github.com/repos/ffffranklin/scotty/contents/{+path}","compare_url":"https://api.github.com/repos/ffffranklin/scotty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ffffranklin/scotty/merges","archive_url":"https://api.github.com/repos/ffffranklin/scotty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ffffranklin/scotty/downloads","issues_url":"https://api.github.com/repos/ffffranklin/scotty/issues{/number}","pulls_url":"https://api.github.com/repos/ffffranklin/scotty/pulls{/number}","milestones_url":"https://api.github.com/repos/ffffranklin/scotty/milestones{/number}","notifications_url":"https://api.github.com/repos/ffffranklin/scotty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ffffranklin/scotty/labels{/name}","releases_url":"https://api.github.com/repos/ffffranklin/scotty/releases{/id}","created_at":"2015-09-10T05:59:57Z","updated_at":"2015-09-10T06:01:19Z","pushed_at":"2015-09-16T06:12:03Z","git_url":"git://github.com/ffffranklin/scotty.git","ssh_url":"git@github.com:ffffranklin/scotty.git","clone_url":"https://github.com/ffffranklin/scotty.git","svn_url":"https://github.com/ffffranklin/scotty","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ffffranklin:master","ref":"master","sha":"017987587329017c81123c489e8e7585f3ca151f","user":{"login":"ffffranklin","id":1546561,"avatar_url":"https://avatars.githubusercontent.com/u/1546561?v=3","gravatar_id":"","url":"https://api.github.com/users/ffffranklin","html_url":"https://github.com/ffffranklin","followers_url":"https://api.github.com/users/ffffranklin/followers","following_url":"https://api.github.com/users/ffffranklin/following{/other_user}","gists_url":"https://api.github.com/users/ffffranklin/gists{/gist_id}","starred_url":"https://api.github.com/users/ffffranklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffffranklin/subscriptions","organizations_url":"https://api.github.com/users/ffffranklin/orgs","repos_url":"https://api.github.com/users/ffffranklin/repos","events_url":"https://api.github.com/users/ffffranklin/events{/privacy}","received_events_url":"https://api.github.com/users/ffffranklin/received_events","type":"User","site_admin":false},"repo":{"id":42225288,"name":"scotty","full_name":"ffffranklin/scotty","owner":{"login":"ffffranklin","id":1546561,"avatar_url":"https://avatars.githubusercontent.com/u/1546561?v=3","gravatar_id":"","url":"https://api.github.com/users/ffffranklin","html_url":"https://github.com/ffffranklin","followers_url":"https://api.github.com/users/ffffranklin/followers","following_url":"https://api.github.com/users/ffffranklin/following{/other_user}","gists_url":"https://api.github.com/users/ffffranklin/gists{/gist_id}","starred_url":"https://api.github.com/users/ffffranklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffffranklin/subscriptions","organizations_url":"https://api.github.com/users/ffffranklin/orgs","repos_url":"https://api.github.com/users/ffffranklin/repos","events_url":"https://api.github.com/users/ffffranklin/events{/privacy}","received_events_url":"https://api.github.com/users/ffffranklin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ffffranklin/scotty","description":"Synology Diskstation Git Repo Manager","fork":false,"url":"https://api.github.com/repos/ffffranklin/scotty","forks_url":"https://api.github.com/repos/ffffranklin/scotty/forks","keys_url":"https://api.github.com/repos/ffffranklin/scotty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ffffranklin/scotty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ffffranklin/scotty/teams","hooks_url":"https://api.github.com/repos/ffffranklin/scotty/hooks","issue_events_url":"https://api.github.com/repos/ffffranklin/scotty/issues/events{/number}","events_url":"https://api.github.com/repos/ffffranklin/scotty/events","assignees_url":"https://api.github.com/repos/ffffranklin/scotty/assignees{/user}","branches_url":"https://api.github.com/repos/ffffranklin/scotty/branches{/branch}","tags_url":"https://api.github.com/repos/ffffranklin/scotty/tags","blobs_url":"https://api.github.com/repos/ffffranklin/scotty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ffffranklin/scotty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ffffranklin/scotty/git/refs{/sha}","trees_url":"https://api.github.com/repos/ffffranklin/scotty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ffffranklin/scotty/statuses/{sha}","languages_url":"https://api.github.com/repos/ffffranklin/scotty/languages","stargazers_url":"https://api.github.com/repos/ffffranklin/scotty/stargazers","contributors_url":"https://api.github.com/repos/ffffranklin/scotty/contributors","subscribers_url":"https://api.github.com/repos/ffffranklin/scotty/subscribers","subscription_url":"https://api.github.com/repos/ffffranklin/scotty/subscription","commits_url":"https://api.github.com/repos/ffffranklin/scotty/commits{/sha}","git_commits_url":"https://api.github.com/repos/ffffranklin/scotty/git/commits{/sha}","comments_url":"https://api.github.com/repos/ffffranklin/scotty/comments{/number}","issue_comment_url":"https://api.github.com/repos/ffffranklin/scotty/issues/comments{/number}","contents_url":"https://api.github.com/repos/ffffranklin/scotty/contents/{+path}","compare_url":"https://api.github.com/repos/ffffranklin/scotty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ffffranklin/scotty/merges","archive_url":"https://api.github.com/repos/ffffranklin/scotty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ffffranklin/scotty/downloads","issues_url":"https://api.github.com/repos/ffffranklin/scotty/issues{/number}","pulls_url":"https://api.github.com/repos/ffffranklin/scotty/pulls{/number}","milestones_url":"https://api.github.com/repos/ffffranklin/scotty/milestones{/number}","notifications_url":"https://api.github.com/repos/ffffranklin/scotty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ffffranklin/scotty/labels{/name}","releases_url":"https://api.github.com/repos/ffffranklin/scotty/releases{/id}","created_at":"2015-09-10T05:59:57Z","updated_at":"2015-09-10T06:01:19Z","pushed_at":"2015-09-16T06:12:03Z","git_url":"git://github.com/ffffranklin/scotty.git","ssh_url":"git@github.com:ffffranklin/scotty.git","clone_url":"https://github.com/ffffranklin/scotty.git","svn_url":"https://github.com/ffffranklin/scotty","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ffffranklin/scotty/pulls/9"},"html":{"href":"https://github.com/ffffranklin/scotty/pull/9"},"issue":{"href":"https://api.github.com/repos/ffffranklin/scotty/issues/9"},"comments":{"href":"https://api.github.com/repos/ffffranklin/scotty/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/ffffranklin/scotty/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/ffffranklin/scotty/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ffffranklin/scotty/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/ffffranklin/scotty/statuses/cf82432642fc5411911a23cbc873eb8edbbeca4f"}}}}