{"action":"created","comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments/30543660","id":30543660,"diff_hunk":"@@ -22,6 +23,20 @@ module.exports = Command.extend({\n   anonymousOptions: [\n     '<blueprint>'\n   ],\n+  \n+  beforeRun: function(rawArgs){\n+    // merge in blueprint availableOptions\n+    var blueprint;\n+    var debug = require('debug')('ember-cli/commands/destroy');\n+    try{","path":"lib/commands/destroy.js","position":17,"original_position":17,"commit_id":"a5fc1104f21a85f814f508bcce42735898f8c223","original_commit_id":"a5fc1104f21a85f814f508bcce42735898f8c223","user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"body":"whitespace","created_at":"2015-05-18T20:22:54Z","updated_at":"2015-05-18T20:22:54Z","html_url":"https://github.com/ember-cli/ember-cli/pull/4104#discussion_r30543660","pull_request_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4104","_links":{"self":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments/30543660"},"html":{"href":"https://github.com/ember-cli/ember-cli/pull/4104#discussion_r30543660"},"pull_request":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4104"}}},"pull_request":{"url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4104","id":35664894,"html_url":"https://github.com/ember-cli/ember-cli/pull/4104","diff_url":"https://github.com/ember-cli/ember-cli/pull/4104.diff","patch_url":"https://github.com/ember-cli/ember-cli/pull/4104.patch","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4104","number":4104,"state":"open","locked":false,"title":"[BUGFIX] Fix custom blueprint options for destroy command","user":{"login":"trabus","id":324797,"avatar_url":"https://avatars.githubusercontent.com/u/324797?v=3","gravatar_id":"","url":"https://api.github.com/users/trabus","html_url":"https://github.com/trabus","followers_url":"https://api.github.com/users/trabus/followers","following_url":"https://api.github.com/users/trabus/following{/other_user}","gists_url":"https://api.github.com/users/trabus/gists{/gist_id}","starred_url":"https://api.github.com/users/trabus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trabus/subscriptions","organizations_url":"https://api.github.com/users/trabus/orgs","repos_url":"https://api.github.com/users/trabus/repos","events_url":"https://api.github.com/users/trabus/events{/privacy}","received_events_url":"https://api.github.com/users/trabus/received_events","type":"User","site_admin":false},"body":"This PR fixes #4099 by adding custom blueprint options to the destroy command (previously was only added to the generate command). The `ember destroy component foo-bar -p` command was failing because of the addition of an option that the `__path__` token depended upon.\r\n\r\nThis PR also fixes all of the internal destroy acceptance tests by asserting that the destroy command returns an object instead of an errorCode.","created_at":"2015-05-18T19:22:39Z","updated_at":"2015-05-18T20:22:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5b7bf8a974d50c6dc0285af09cc750e678ac759","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4104/commits","review_comments_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4104/comments","review_comment_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/4104/comments","statuses_url":"https://api.github.com/repos/ember-cli/ember-cli/statuses/a5fc1104f21a85f814f508bcce42735898f8c223","head":{"label":"trabus:destroy-fix","ref":"destroy-fix","sha":"a5fc1104f21a85f814f508bcce42735898f8c223","user":{"login":"trabus","id":324797,"avatar_url":"https://avatars.githubusercontent.com/u/324797?v=3","gravatar_id":"","url":"https://api.github.com/users/trabus","html_url":"https://github.com/trabus","followers_url":"https://api.github.com/users/trabus/followers","following_url":"https://api.github.com/users/trabus/following{/other_user}","gists_url":"https://api.github.com/users/trabus/gists{/gist_id}","starred_url":"https://api.github.com/users/trabus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trabus/subscriptions","organizations_url":"https://api.github.com/users/trabus/orgs","repos_url":"https://api.github.com/users/trabus/repos","events_url":"https://api.github.com/users/trabus/events{/privacy}","received_events_url":"https://api.github.com/users/trabus/received_events","type":"User","site_admin":false},"repo":{"id":22461052,"name":"ember-cli","full_name":"trabus/ember-cli","owner":{"login":"trabus","id":324797,"avatar_url":"https://avatars.githubusercontent.com/u/324797?v=3","gravatar_id":"","url":"https://api.github.com/users/trabus","html_url":"https://github.com/trabus","followers_url":"https://api.github.com/users/trabus/followers","following_url":"https://api.github.com/users/trabus/following{/other_user}","gists_url":"https://api.github.com/users/trabus/gists{/gist_id}","starred_url":"https://api.github.com/users/trabus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trabus/subscriptions","organizations_url":"https://api.github.com/users/trabus/orgs","repos_url":"https://api.github.com/users/trabus/repos","events_url":"https://api.github.com/users/trabus/events{/privacy}","received_events_url":"https://api.github.com/users/trabus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trabus/ember-cli","description":"","fork":true,"url":"https://api.github.com/repos/trabus/ember-cli","forks_url":"https://api.github.com/repos/trabus/ember-cli/forks","keys_url":"https://api.github.com/repos/trabus/ember-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trabus/ember-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trabus/ember-cli/teams","hooks_url":"https://api.github.com/repos/trabus/ember-cli/hooks","issue_events_url":"https://api.github.com/repos/trabus/ember-cli/issues/events{/number}","events_url":"https://api.github.com/repos/trabus/ember-cli/events","assignees_url":"https://api.github.com/repos/trabus/ember-cli/assignees{/user}","branches_url":"https://api.github.com/repos/trabus/ember-cli/branches{/branch}","tags_url":"https://api.github.com/repos/trabus/ember-cli/tags","blobs_url":"https://api.github.com/repos/trabus/ember-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trabus/ember-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trabus/ember-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/trabus/ember-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trabus/ember-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/trabus/ember-cli/languages","stargazers_url":"https://api.github.com/repos/trabus/ember-cli/stargazers","contributors_url":"https://api.github.com/repos/trabus/ember-cli/contributors","subscribers_url":"https://api.github.com/repos/trabus/ember-cli/subscribers","subscription_url":"https://api.github.com/repos/trabus/ember-cli/subscription","commits_url":"https://api.github.com/repos/trabus/ember-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/trabus/ember-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/trabus/ember-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/trabus/ember-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/trabus/ember-cli/contents/{+path}","compare_url":"https://api.github.com/repos/trabus/ember-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trabus/ember-cli/merges","archive_url":"https://api.github.com/repos/trabus/ember-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trabus/ember-cli/downloads","issues_url":"https://api.github.com/repos/trabus/ember-cli/issues{/number}","pulls_url":"https://api.github.com/repos/trabus/ember-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/trabus/ember-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/trabus/ember-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trabus/ember-cli/labels{/name}","releases_url":"https://api.github.com/repos/trabus/ember-cli/releases{/id}","created_at":"2014-07-31T07:48:56Z","updated_at":"2015-05-04T17:29:15Z","pushed_at":"2015-05-18T19:09:17Z","git_url":"git://github.com/trabus/ember-cli.git","ssh_url":"git@github.com:trabus/ember-cli.git","clone_url":"https://github.com/trabus/ember-cli.git","svn_url":"https://github.com/trabus/ember-cli","homepage":"http:/www.ember-cli.com/","size":7828,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ember-cli:master","ref":"master","sha":"26204c790a1093f8f413c48817d7da62ea3ea4dc","user":{"login":"ember-cli","id":10262982,"avatar_url":"https://avatars.githubusercontent.com/u/10262982?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli","html_url":"https://github.com/ember-cli","followers_url":"https://api.github.com/users/ember-cli/followers","following_url":"https://api.github.com/users/ember-cli/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli/subscriptions","organizations_url":"https://api.github.com/users/ember-cli/orgs","repos_url":"https://api.github.com/users/ember-cli/repos","events_url":"https://api.github.com/users/ember-cli/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli/received_events","type":"Organization","site_admin":false},"repo":{"id":14089735,"name":"ember-cli","full_name":"ember-cli/ember-cli","owner":{"login":"ember-cli","id":10262982,"avatar_url":"https://avatars.githubusercontent.com/u/10262982?v=3","gravatar_id":"","url":"https://api.github.com/users/ember-cli","html_url":"https://github.com/ember-cli","followers_url":"https://api.github.com/users/ember-cli/followers","following_url":"https://api.github.com/users/ember-cli/following{/other_user}","gists_url":"https://api.github.com/users/ember-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/ember-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ember-cli/subscriptions","organizations_url":"https://api.github.com/users/ember-cli/orgs","repos_url":"https://api.github.com/users/ember-cli/repos","events_url":"https://api.github.com/users/ember-cli/events{/privacy}","received_events_url":"https://api.github.com/users/ember-cli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ember-cli/ember-cli","description":"","fork":false,"url":"https://api.github.com/repos/ember-cli/ember-cli","forks_url":"https://api.github.com/repos/ember-cli/ember-cli/forks","keys_url":"https://api.github.com/repos/ember-cli/ember-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ember-cli/ember-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ember-cli/ember-cli/teams","hooks_url":"https://api.github.com/repos/ember-cli/ember-cli/hooks","issue_events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/events{/number}","events_url":"https://api.github.com/repos/ember-cli/ember-cli/events","assignees_url":"https://api.github.com/repos/ember-cli/ember-cli/assignees{/user}","branches_url":"https://api.github.com/repos/ember-cli/ember-cli/branches{/branch}","tags_url":"https://api.github.com/repos/ember-cli/ember-cli/tags","blobs_url":"https://api.github.com/repos/ember-cli/ember-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ember-cli/ember-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ember-cli/ember-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/ember-cli/ember-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ember-cli/ember-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/ember-cli/ember-cli/languages","stargazers_url":"https://api.github.com/repos/ember-cli/ember-cli/stargazers","contributors_url":"https://api.github.com/repos/ember-cli/ember-cli/contributors","subscribers_url":"https://api.github.com/repos/ember-cli/ember-cli/subscribers","subscription_url":"https://api.github.com/repos/ember-cli/ember-cli/subscription","commits_url":"https://api.github.com/repos/ember-cli/ember-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/ember-cli/ember-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/ember-cli/ember-cli/contents/{+path}","compare_url":"https://api.github.com/repos/ember-cli/ember-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ember-cli/ember-cli/merges","archive_url":"https://api.github.com/repos/ember-cli/ember-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ember-cli/ember-cli/downloads","issues_url":"https://api.github.com/repos/ember-cli/ember-cli/issues{/number}","pulls_url":"https://api.github.com/repos/ember-cli/ember-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/ember-cli/ember-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/ember-cli/ember-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/labels{/name}","releases_url":"https://api.github.com/repos/ember-cli/ember-cli/releases{/id}","created_at":"2013-11-03T17:34:43Z","updated_at":"2015-05-18T13:35:45Z","pushed_at":"2015-05-18T19:22:40Z","git_url":"git://github.com/ember-cli/ember-cli.git","ssh_url":"git@github.com:ember-cli/ember-cli.git","clone_url":"https://github.com/ember-cli/ember-cli.git","svn_url":"https://github.com/ember-cli/ember-cli","homepage":"http://www.ember-cli.com/","size":30133,"stargazers_count":2202,"watchers_count":2202,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":612,"mirror_url":null,"open_issues_count":262,"forks":612,"open_issues":262,"watchers":2202,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4104"},"html":{"href":"https://github.com/ember-cli/ember-cli/pull/4104"},"issue":{"href":"https://api.github.com/repos/ember-cli/ember-cli/issues/4104"},"comments":{"href":"https://api.github.com/repos/ember-cli/ember-cli/issues/4104/comments"},"review_comments":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4104/comments"},"review_comment":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ember-cli/ember-cli/pulls/4104/commits"},"statuses":{"href":"https://api.github.com/repos/ember-cli/ember-cli/statuses/a5fc1104f21a85f814f508bcce42735898f8c223"}}}}