{"action":"created","comment":{"url":"https://api.github.com/repos/groupon-testium/subprocess/pulls/comments/25209179","id":25209179,"diff_hunk":"@@ -30,12 +30,17 @@ procNotFoundError = (error, cmd) ->\n   error.message = \"Unable to find #{cmd}\"\n   error\n \n-interpolatePort = (port) ->\n-  (arg) ->\n-    arg.replace '%port%', port\n+processPorts = {}\n+interpolatePorts = (args, processName, port) ->\n+  processPorts[\"#{processName}.port\"] = port","path":"src/spawn.coffee","position":9,"original_position":9,"commit_id":"f0dc0087512f1c94ba7b68c772b3645070275859","original_commit_id":"f0dc0087512f1c94ba7b68c772b3645070275859","user":{"login":"jkrems","id":567540,"avatar_url":"https://avatars.githubusercontent.com/u/567540?v=3","gravatar_id":"","url":"https://api.github.com/users/jkrems","html_url":"https://github.com/jkrems","followers_url":"https://api.github.com/users/jkrems/followers","following_url":"https://api.github.com/users/jkrems/following{/other_user}","gists_url":"https://api.github.com/users/jkrems/gists{/gist_id}","starred_url":"https://api.github.com/users/jkrems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkrems/subscriptions","organizations_url":"https://api.github.com/users/jkrems/orgs","repos_url":"https://api.github.com/users/jkrems/repos","events_url":"https://api.github.com/users/jkrems/events{/privacy}","received_events_url":"https://api.github.com/users/jkrems/received_events","type":"User","site_admin":false},"body":":+1: Just wanted to throw it in there. :)","created_at":"2015-02-23T22:26:14Z","updated_at":"2015-02-23T22:26:14Z","html_url":"https://github.com/groupon-testium/subprocess/pull/6#discussion_r25209179","pull_request_url":"https://api.github.com/repos/groupon-testium/subprocess/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/groupon-testium/subprocess/pulls/comments/25209179"},"html":{"href":"https://github.com/groupon-testium/subprocess/pull/6#discussion_r25209179"},"pull_request":{"href":"https://api.github.com/repos/groupon-testium/subprocess/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/groupon-testium/subprocess/pulls/6","id":29851292,"html_url":"https://github.com/groupon-testium/subprocess/pull/6","diff_url":"https://github.com/groupon-testium/subprocess/pull/6.diff","patch_url":"https://github.com/groupon-testium/subprocess/pull/6.patch","issue_url":"https://api.github.com/repos/groupon-testium/subprocess/issues/6","number":6,"state":"open","locked":false,"title":"allow interpolating proc ports in command arguments","user":{"login":"EndangeredMassa","id":41545,"avatar_url":"https://avatars.githubusercontent.com/u/41545?v=3","gravatar_id":"","url":"https://api.github.com/users/EndangeredMassa","html_url":"https://github.com/EndangeredMassa","followers_url":"https://api.github.com/users/EndangeredMassa/followers","following_url":"https://api.github.com/users/EndangeredMassa/following{/other_user}","gists_url":"https://api.github.com/users/EndangeredMassa/gists{/gist_id}","starred_url":"https://api.github.com/users/EndangeredMassa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EndangeredMassa/subscriptions","organizations_url":"https://api.github.com/users/EndangeredMassa/orgs","repos_url":"https://api.github.com/users/EndangeredMassa/repos","events_url":"https://api.github.com/users/EndangeredMassa/events{/privacy}","received_events_url":"https://api.github.com/users/EndangeredMassa/received_events","type":"User","site_admin":false},"body":"You will now be able to use things like `%otherproc.port%` in your command arguments.","created_at":"2015-02-23T22:15:50Z","updated_at":"2015-02-23T22:26:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42fd5e6a674bf76b43a156f665adb444ae0580ea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/groupon-testium/subprocess/pulls/6/commits","review_comments_url":"https://api.github.com/repos/groupon-testium/subprocess/pulls/6/comments","review_comment_url":"https://api.github.com/repos/groupon-testium/subprocess/pulls/comments{/number}","comments_url":"https://api.github.com/repos/groupon-testium/subprocess/issues/6/comments","statuses_url":"https://api.github.com/repos/groupon-testium/subprocess/statuses/f0dc0087512f1c94ba7b68c772b3645070275859","head":{"label":"groupon-testium:proc-ports","ref":"proc-ports","sha":"f0dc0087512f1c94ba7b68c772b3645070275859","user":{"login":"groupon-testium","id":6875842,"avatar_url":"https://avatars.githubusercontent.com/u/6875842?v=3","gravatar_id":"","url":"https://api.github.com/users/groupon-testium","html_url":"https://github.com/groupon-testium","followers_url":"https://api.github.com/users/groupon-testium/followers","following_url":"https://api.github.com/users/groupon-testium/following{/other_user}","gists_url":"https://api.github.com/users/groupon-testium/gists{/gist_id}","starred_url":"https://api.github.com/users/groupon-testium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupon-testium/subscriptions","organizations_url":"https://api.github.com/users/groupon-testium/orgs","repos_url":"https://api.github.com/users/groupon-testium/repos","events_url":"https://api.github.com/users/groupon-testium/events{/privacy}","received_events_url":"https://api.github.com/users/groupon-testium/received_events","type":"Organization","site_admin":false},"repo":{"id":30040249,"name":"subprocess","full_name":"groupon-testium/subprocess","owner":{"login":"groupon-testium","id":6875842,"avatar_url":"https://avatars.githubusercontent.com/u/6875842?v=3","gravatar_id":"","url":"https://api.github.com/users/groupon-testium","html_url":"https://github.com/groupon-testium","followers_url":"https://api.github.com/users/groupon-testium/followers","following_url":"https://api.github.com/users/groupon-testium/following{/other_user}","gists_url":"https://api.github.com/users/groupon-testium/gists{/gist_id}","starred_url":"https://api.github.com/users/groupon-testium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupon-testium/subscriptions","organizations_url":"https://api.github.com/users/groupon-testium/orgs","repos_url":"https://api.github.com/users/groupon-testium/repos","events_url":"https://api.github.com/users/groupon-testium/events{/privacy}","received_events_url":"https://api.github.com/users/groupon-testium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groupon-testium/subprocess","description":"an async.auto for processes","fork":false,"url":"https://api.github.com/repos/groupon-testium/subprocess","forks_url":"https://api.github.com/repos/groupon-testium/subprocess/forks","keys_url":"https://api.github.com/repos/groupon-testium/subprocess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groupon-testium/subprocess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groupon-testium/subprocess/teams","hooks_url":"https://api.github.com/repos/groupon-testium/subprocess/hooks","issue_events_url":"https://api.github.com/repos/groupon-testium/subprocess/issues/events{/number}","events_url":"https://api.github.com/repos/groupon-testium/subprocess/events","assignees_url":"https://api.github.com/repos/groupon-testium/subprocess/assignees{/user}","branches_url":"https://api.github.com/repos/groupon-testium/subprocess/branches{/branch}","tags_url":"https://api.github.com/repos/groupon-testium/subprocess/tags","blobs_url":"https://api.github.com/repos/groupon-testium/subprocess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groupon-testium/subprocess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groupon-testium/subprocess/git/refs{/sha}","trees_url":"https://api.github.com/repos/groupon-testium/subprocess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groupon-testium/subprocess/statuses/{sha}","languages_url":"https://api.github.com/repos/groupon-testium/subprocess/languages","stargazers_url":"https://api.github.com/repos/groupon-testium/subprocess/stargazers","contributors_url":"https://api.github.com/repos/groupon-testium/subprocess/contributors","subscribers_url":"https://api.github.com/repos/groupon-testium/subprocess/subscribers","subscription_url":"https://api.github.com/repos/groupon-testium/subprocess/subscription","commits_url":"https://api.github.com/repos/groupon-testium/subprocess/commits{/sha}","git_commits_url":"https://api.github.com/repos/groupon-testium/subprocess/git/commits{/sha}","comments_url":"https://api.github.com/repos/groupon-testium/subprocess/comments{/number}","issue_comment_url":"https://api.github.com/repos/groupon-testium/subprocess/issues/comments{/number}","contents_url":"https://api.github.com/repos/groupon-testium/subprocess/contents/{+path}","compare_url":"https://api.github.com/repos/groupon-testium/subprocess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groupon-testium/subprocess/merges","archive_url":"https://api.github.com/repos/groupon-testium/subprocess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groupon-testium/subprocess/downloads","issues_url":"https://api.github.com/repos/groupon-testium/subprocess/issues{/number}","pulls_url":"https://api.github.com/repos/groupon-testium/subprocess/pulls{/number}","milestones_url":"https://api.github.com/repos/groupon-testium/subprocess/milestones{/number}","notifications_url":"https://api.github.com/repos/groupon-testium/subprocess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groupon-testium/subprocess/labels{/name}","releases_url":"https://api.github.com/repos/groupon-testium/subprocess/releases{/id}","created_at":"2015-01-29T20:41:39Z","updated_at":"2015-02-23T20:51:25Z","pushed_at":"2015-02-23T22:17:10Z","git_url":"git://github.com/groupon-testium/subprocess.git","ssh_url":"git@github.com:groupon-testium/subprocess.git","clone_url":"https://github.com/groupon-testium/subprocess.git","svn_url":"https://github.com/groupon-testium/subprocess","homepage":"","size":184,"stargazers_count":3,"watchers_count":3,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"groupon-testium:master","ref":"master","sha":"dce2e8992d3bcc9675bcef764966ad4f430a32b2","user":{"login":"groupon-testium","id":6875842,"avatar_url":"https://avatars.githubusercontent.com/u/6875842?v=3","gravatar_id":"","url":"https://api.github.com/users/groupon-testium","html_url":"https://github.com/groupon-testium","followers_url":"https://api.github.com/users/groupon-testium/followers","following_url":"https://api.github.com/users/groupon-testium/following{/other_user}","gists_url":"https://api.github.com/users/groupon-testium/gists{/gist_id}","starred_url":"https://api.github.com/users/groupon-testium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupon-testium/subscriptions","organizations_url":"https://api.github.com/users/groupon-testium/orgs","repos_url":"https://api.github.com/users/groupon-testium/repos","events_url":"https://api.github.com/users/groupon-testium/events{/privacy}","received_events_url":"https://api.github.com/users/groupon-testium/received_events","type":"Organization","site_admin":false},"repo":{"id":30040249,"name":"subprocess","full_name":"groupon-testium/subprocess","owner":{"login":"groupon-testium","id":6875842,"avatar_url":"https://avatars.githubusercontent.com/u/6875842?v=3","gravatar_id":"","url":"https://api.github.com/users/groupon-testium","html_url":"https://github.com/groupon-testium","followers_url":"https://api.github.com/users/groupon-testium/followers","following_url":"https://api.github.com/users/groupon-testium/following{/other_user}","gists_url":"https://api.github.com/users/groupon-testium/gists{/gist_id}","starred_url":"https://api.github.com/users/groupon-testium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupon-testium/subscriptions","organizations_url":"https://api.github.com/users/groupon-testium/orgs","repos_url":"https://api.github.com/users/groupon-testium/repos","events_url":"https://api.github.com/users/groupon-testium/events{/privacy}","received_events_url":"https://api.github.com/users/groupon-testium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groupon-testium/subprocess","description":"an async.auto for processes","fork":false,"url":"https://api.github.com/repos/groupon-testium/subprocess","forks_url":"https://api.github.com/repos/groupon-testium/subprocess/forks","keys_url":"https://api.github.com/repos/groupon-testium/subprocess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groupon-testium/subprocess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groupon-testium/subprocess/teams","hooks_url":"https://api.github.com/repos/groupon-testium/subprocess/hooks","issue_events_url":"https://api.github.com/repos/groupon-testium/subprocess/issues/events{/number}","events_url":"https://api.github.com/repos/groupon-testium/subprocess/events","assignees_url":"https://api.github.com/repos/groupon-testium/subprocess/assignees{/user}","branches_url":"https://api.github.com/repos/groupon-testium/subprocess/branches{/branch}","tags_url":"https://api.github.com/repos/groupon-testium/subprocess/tags","blobs_url":"https://api.github.com/repos/groupon-testium/subprocess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groupon-testium/subprocess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groupon-testium/subprocess/git/refs{/sha}","trees_url":"https://api.github.com/repos/groupon-testium/subprocess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groupon-testium/subprocess/statuses/{sha}","languages_url":"https://api.github.com/repos/groupon-testium/subprocess/languages","stargazers_url":"https://api.github.com/repos/groupon-testium/subprocess/stargazers","contributors_url":"https://api.github.com/repos/groupon-testium/subprocess/contributors","subscribers_url":"https://api.github.com/repos/groupon-testium/subprocess/subscribers","subscription_url":"https://api.github.com/repos/groupon-testium/subprocess/subscription","commits_url":"https://api.github.com/repos/groupon-testium/subprocess/commits{/sha}","git_commits_url":"https://api.github.com/repos/groupon-testium/subprocess/git/commits{/sha}","comments_url":"https://api.github.com/repos/groupon-testium/subprocess/comments{/number}","issue_comment_url":"https://api.github.com/repos/groupon-testium/subprocess/issues/comments{/number}","contents_url":"https://api.github.com/repos/groupon-testium/subprocess/contents/{+path}","compare_url":"https://api.github.com/repos/groupon-testium/subprocess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groupon-testium/subprocess/merges","archive_url":"https://api.github.com/repos/groupon-testium/subprocess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groupon-testium/subprocess/downloads","issues_url":"https://api.github.com/repos/groupon-testium/subprocess/issues{/number}","pulls_url":"https://api.github.com/repos/groupon-testium/subprocess/pulls{/number}","milestones_url":"https://api.github.com/repos/groupon-testium/subprocess/milestones{/number}","notifications_url":"https://api.github.com/repos/groupon-testium/subprocess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groupon-testium/subprocess/labels{/name}","releases_url":"https://api.github.com/repos/groupon-testium/subprocess/releases{/id}","created_at":"2015-01-29T20:41:39Z","updated_at":"2015-02-23T20:51:25Z","pushed_at":"2015-02-23T22:17:10Z","git_url":"git://github.com/groupon-testium/subprocess.git","ssh_url":"git@github.com:groupon-testium/subprocess.git","clone_url":"https://github.com/groupon-testium/subprocess.git","svn_url":"https://github.com/groupon-testium/subprocess","homepage":"","size":184,"stargazers_count":3,"watchers_count":3,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/groupon-testium/subprocess/pulls/6"},"html":{"href":"https://github.com/groupon-testium/subprocess/pull/6"},"issue":{"href":"https://api.github.com/repos/groupon-testium/subprocess/issues/6"},"comments":{"href":"https://api.github.com/repos/groupon-testium/subprocess/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/groupon-testium/subprocess/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/groupon-testium/subprocess/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/groupon-testium/subprocess/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/groupon-testium/subprocess/statuses/f0dc0087512f1c94ba7b68c772b3645070275859"}}}}