{"action":"created","comment":{"url":"https://api.github.com/repos/tessel/t2-cli/pulls/comments/40839772","id":40839772,"diff_hunk":"@@ -68,44 +68,31 @@ Tessel.prototype.restartScript = function(opts) {\n   var filepath = isPush ? PUSH_PATH : RUN_PATH;\n \n   return new Promise(function(resolve, reject) {\n-    return self.connection.exec(commands.readFile(filepath + opts.entryPoint))\n-      .then(function(remoteProcess) {\n-        var error = '';\n-\n-        remoteProcess.stderr.on('data', function(data) {\n-          error += data.toString();\n-        });\n-\n-        remoteProcess.once('close', function() {\n-          if (error.length) {\n-            if (error.indexOf('No such file or directory') !== -1) {\n-              error = '\"' + opts.entryPoint + '\" not found on ' + self.name;\n-            }\n+    return self.simpleExec(commands.readFile(filepath + opts.entryPoint))","path":"lib/tessel/deploy.js","position":17,"original_position":17,"commit_id":"f9e3fdeddb2c11ec6a6ac705cb270e3951bd410f","original_commit_id":"f9e3fdeddb2c11ec6a6ac705cb270e3951bd410f","user":{"login":"MrNice","id":2587335,"avatar_url":"https://avatars.githubusercontent.com/u/2587335?v=3","gravatar_id":"","url":"https://api.github.com/users/MrNice","html_url":"https://github.com/MrNice","followers_url":"https://api.github.com/users/MrNice/followers","following_url":"https://api.github.com/users/MrNice/following{/other_user}","gists_url":"https://api.github.com/users/MrNice/gists{/gist_id}","starred_url":"https://api.github.com/users/MrNice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrNice/subscriptions","organizations_url":"https://api.github.com/users/MrNice/orgs","repos_url":"https://api.github.com/users/MrNice/repos","events_url":"https://api.github.com/users/MrNice/events{/privacy}","received_events_url":"https://api.github.com/users/MrNice/received_events","type":"User","site_admin":false},"body":"Should we have a command \"checkFileExistance\"?\r\n```bash\r\n[ -f $FILE ] && echo \"File exists\" || echo \"File does not exists\"\r\n```\r\n\r\nJust to be super clear that we don't care about the contents of the file.","created_at":"2015-09-30T19:28:48Z","updated_at":"2015-09-30T19:28:48Z","html_url":"https://github.com/tessel/t2-cli/pull/351#discussion_r40839772","pull_request_url":"https://api.github.com/repos/tessel/t2-cli/pulls/351","_links":{"self":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/comments/40839772"},"html":{"href":"https://github.com/tessel/t2-cli/pull/351#discussion_r40839772"},"pull_request":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/351"}}},"pull_request":{"url":"https://api.github.com/repos/tessel/t2-cli/pulls/351","id":46365469,"html_url":"https://github.com/tessel/t2-cli/pull/351","diff_url":"https://github.com/tessel/t2-cli/pull/351.diff","patch_url":"https://github.com/tessel/t2-cli/pull/351.patch","issue_url":"https://api.github.com/repos/tessel/t2-cli/issues/351","number":351,"state":"open","locked":false,"title":"Refactor many process executions","user":{"login":"johnnyman727","id":432909,"avatar_url":"https://avatars.githubusercontent.com/u/432909?v=3","gravatar_id":"","url":"https://api.github.com/users/johnnyman727","html_url":"https://github.com/johnnyman727","followers_url":"https://api.github.com/users/johnnyman727/followers","following_url":"https://api.github.com/users/johnnyman727/following{/other_user}","gists_url":"https://api.github.com/users/johnnyman727/gists{/gist_id}","starred_url":"https://api.github.com/users/johnnyman727/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnnyman727/subscriptions","organizations_url":"https://api.github.com/users/johnnyman727/orgs","repos_url":"https://api.github.com/users/johnnyman727/repos","events_url":"https://api.github.com/users/johnnyman727/events{/privacy}","received_events_url":"https://api.github.com/users/johnnyman727/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/tessel/t2-cli/issues/289.","created_at":"2015-09-30T06:27:00Z","updated_at":"2015-09-30T19:28:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01b680ed71b9c94b459c7ad75d9019d916ae0789","assignee":{"login":"MrNice","id":2587335,"avatar_url":"https://avatars.githubusercontent.com/u/2587335?v=3","gravatar_id":"","url":"https://api.github.com/users/MrNice","html_url":"https://github.com/MrNice","followers_url":"https://api.github.com/users/MrNice/followers","following_url":"https://api.github.com/users/MrNice/following{/other_user}","gists_url":"https://api.github.com/users/MrNice/gists{/gist_id}","starred_url":"https://api.github.com/users/MrNice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrNice/subscriptions","organizations_url":"https://api.github.com/users/MrNice/orgs","repos_url":"https://api.github.com/users/MrNice/repos","events_url":"https://api.github.com/users/MrNice/events{/privacy}","received_events_url":"https://api.github.com/users/MrNice/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/tessel/t2-cli/pulls/351/commits","review_comments_url":"https://api.github.com/repos/tessel/t2-cli/pulls/351/comments","review_comment_url":"https://api.github.com/repos/tessel/t2-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tessel/t2-cli/issues/351/comments","statuses_url":"https://api.github.com/repos/tessel/t2-cli/statuses/f9e3fdeddb2c11ec6a6ac705cb270e3951bd410f","head":{"label":"tessel:jon-erase","ref":"jon-erase","sha":"f9e3fdeddb2c11ec6a6ac705cb270e3951bd410f","user":{"login":"tessel","id":5573563,"avatar_url":"https://avatars.githubusercontent.com/u/5573563?v=3","gravatar_id":"","url":"https://api.github.com/users/tessel","html_url":"https://github.com/tessel","followers_url":"https://api.github.com/users/tessel/followers","following_url":"https://api.github.com/users/tessel/following{/other_user}","gists_url":"https://api.github.com/users/tessel/gists{/gist_id}","starred_url":"https://api.github.com/users/tessel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tessel/subscriptions","organizations_url":"https://api.github.com/users/tessel/orgs","repos_url":"https://api.github.com/users/tessel/repos","events_url":"https://api.github.com/users/tessel/events{/privacy}","received_events_url":"https://api.github.com/users/tessel/received_events","type":"Organization","site_admin":false},"repo":{"id":30388450,"name":"t2-cli","full_name":"tessel/t2-cli","owner":{"login":"tessel","id":5573563,"avatar_url":"https://avatars.githubusercontent.com/u/5573563?v=3","gravatar_id":"","url":"https://api.github.com/users/tessel","html_url":"https://github.com/tessel","followers_url":"https://api.github.com/users/tessel/followers","following_url":"https://api.github.com/users/tessel/following{/other_user}","gists_url":"https://api.github.com/users/tessel/gists{/gist_id}","starred_url":"https://api.github.com/users/tessel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tessel/subscriptions","organizations_url":"https://api.github.com/users/tessel/orgs","repos_url":"https://api.github.com/users/tessel/repos","events_url":"https://api.github.com/users/tessel/events{/privacy}","received_events_url":"https://api.github.com/users/tessel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tessel/t2-cli","description":"Command line interface to Tessel 2.","fork":false,"url":"https://api.github.com/repos/tessel/t2-cli","forks_url":"https://api.github.com/repos/tessel/t2-cli/forks","keys_url":"https://api.github.com/repos/tessel/t2-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tessel/t2-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tessel/t2-cli/teams","hooks_url":"https://api.github.com/repos/tessel/t2-cli/hooks","issue_events_url":"https://api.github.com/repos/tessel/t2-cli/issues/events{/number}","events_url":"https://api.github.com/repos/tessel/t2-cli/events","assignees_url":"https://api.github.com/repos/tessel/t2-cli/assignees{/user}","branches_url":"https://api.github.com/repos/tessel/t2-cli/branches{/branch}","tags_url":"https://api.github.com/repos/tessel/t2-cli/tags","blobs_url":"https://api.github.com/repos/tessel/t2-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tessel/t2-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tessel/t2-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/tessel/t2-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tessel/t2-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/tessel/t2-cli/languages","stargazers_url":"https://api.github.com/repos/tessel/t2-cli/stargazers","contributors_url":"https://api.github.com/repos/tessel/t2-cli/contributors","subscribers_url":"https://api.github.com/repos/tessel/t2-cli/subscribers","subscription_url":"https://api.github.com/repos/tessel/t2-cli/subscription","commits_url":"https://api.github.com/repos/tessel/t2-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/tessel/t2-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/tessel/t2-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/tessel/t2-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/tessel/t2-cli/contents/{+path}","compare_url":"https://api.github.com/repos/tessel/t2-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tessel/t2-cli/merges","archive_url":"https://api.github.com/repos/tessel/t2-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tessel/t2-cli/downloads","issues_url":"https://api.github.com/repos/tessel/t2-cli/issues{/number}","pulls_url":"https://api.github.com/repos/tessel/t2-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/tessel/t2-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/tessel/t2-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tessel/t2-cli/labels{/name}","releases_url":"https://api.github.com/repos/tessel/t2-cli/releases{/id}","created_at":"2015-02-06T01:27:53Z","updated_at":"2015-09-17T13:39:11Z","pushed_at":"2015-09-30T06:38:08Z","git_url":"git://github.com/tessel/t2-cli.git","ssh_url":"git@github.com:tessel/t2-cli.git","clone_url":"https://github.com/tessel/t2-cli.git","svn_url":"https://github.com/tessel/t2-cli","homepage":"","size":2759,"stargazers_count":28,"watchers_count":28,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":68,"forks":9,"open_issues":68,"watchers":28,"default_branch":"master"}},"base":{"label":"tessel:master","ref":"master","sha":"c31d9ccc204bd6bc908017e88393805dc1790fea","user":{"login":"tessel","id":5573563,"avatar_url":"https://avatars.githubusercontent.com/u/5573563?v=3","gravatar_id":"","url":"https://api.github.com/users/tessel","html_url":"https://github.com/tessel","followers_url":"https://api.github.com/users/tessel/followers","following_url":"https://api.github.com/users/tessel/following{/other_user}","gists_url":"https://api.github.com/users/tessel/gists{/gist_id}","starred_url":"https://api.github.com/users/tessel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tessel/subscriptions","organizations_url":"https://api.github.com/users/tessel/orgs","repos_url":"https://api.github.com/users/tessel/repos","events_url":"https://api.github.com/users/tessel/events{/privacy}","received_events_url":"https://api.github.com/users/tessel/received_events","type":"Organization","site_admin":false},"repo":{"id":30388450,"name":"t2-cli","full_name":"tessel/t2-cli","owner":{"login":"tessel","id":5573563,"avatar_url":"https://avatars.githubusercontent.com/u/5573563?v=3","gravatar_id":"","url":"https://api.github.com/users/tessel","html_url":"https://github.com/tessel","followers_url":"https://api.github.com/users/tessel/followers","following_url":"https://api.github.com/users/tessel/following{/other_user}","gists_url":"https://api.github.com/users/tessel/gists{/gist_id}","starred_url":"https://api.github.com/users/tessel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tessel/subscriptions","organizations_url":"https://api.github.com/users/tessel/orgs","repos_url":"https://api.github.com/users/tessel/repos","events_url":"https://api.github.com/users/tessel/events{/privacy}","received_events_url":"https://api.github.com/users/tessel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tessel/t2-cli","description":"Command line interface to Tessel 2.","fork":false,"url":"https://api.github.com/repos/tessel/t2-cli","forks_url":"https://api.github.com/repos/tessel/t2-cli/forks","keys_url":"https://api.github.com/repos/tessel/t2-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tessel/t2-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tessel/t2-cli/teams","hooks_url":"https://api.github.com/repos/tessel/t2-cli/hooks","issue_events_url":"https://api.github.com/repos/tessel/t2-cli/issues/events{/number}","events_url":"https://api.github.com/repos/tessel/t2-cli/events","assignees_url":"https://api.github.com/repos/tessel/t2-cli/assignees{/user}","branches_url":"https://api.github.com/repos/tessel/t2-cli/branches{/branch}","tags_url":"https://api.github.com/repos/tessel/t2-cli/tags","blobs_url":"https://api.github.com/repos/tessel/t2-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tessel/t2-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tessel/t2-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/tessel/t2-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tessel/t2-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/tessel/t2-cli/languages","stargazers_url":"https://api.github.com/repos/tessel/t2-cli/stargazers","contributors_url":"https://api.github.com/repos/tessel/t2-cli/contributors","subscribers_url":"https://api.github.com/repos/tessel/t2-cli/subscribers","subscription_url":"https://api.github.com/repos/tessel/t2-cli/subscription","commits_url":"https://api.github.com/repos/tessel/t2-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/tessel/t2-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/tessel/t2-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/tessel/t2-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/tessel/t2-cli/contents/{+path}","compare_url":"https://api.github.com/repos/tessel/t2-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tessel/t2-cli/merges","archive_url":"https://api.github.com/repos/tessel/t2-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tessel/t2-cli/downloads","issues_url":"https://api.github.com/repos/tessel/t2-cli/issues{/number}","pulls_url":"https://api.github.com/repos/tessel/t2-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/tessel/t2-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/tessel/t2-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tessel/t2-cli/labels{/name}","releases_url":"https://api.github.com/repos/tessel/t2-cli/releases{/id}","created_at":"2015-02-06T01:27:53Z","updated_at":"2015-09-17T13:39:11Z","pushed_at":"2015-09-30T06:38:08Z","git_url":"git://github.com/tessel/t2-cli.git","ssh_url":"git@github.com:tessel/t2-cli.git","clone_url":"https://github.com/tessel/t2-cli.git","svn_url":"https://github.com/tessel/t2-cli","homepage":"","size":2759,"stargazers_count":28,"watchers_count":28,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":68,"forks":9,"open_issues":68,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/351"},"html":{"href":"https://github.com/tessel/t2-cli/pull/351"},"issue":{"href":"https://api.github.com/repos/tessel/t2-cli/issues/351"},"comments":{"href":"https://api.github.com/repos/tessel/t2-cli/issues/351/comments"},"review_comments":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/351/comments"},"review_comment":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tessel/t2-cli/pulls/351/commits"},"statuses":{"href":"https://api.github.com/repos/tessel/t2-cli/statuses/f9e3fdeddb2c11ec6a6ac705cb270e3951bd410f"}}}}