{"action":"opened","issue":{"url":"https://api.github.com/repos/mcollina/boot-in-the-arse/issues/2","repository_url":"https://api.github.com/repos/mcollina/boot-in-the-arse","labels_url":"https://api.github.com/repos/mcollina/boot-in-the-arse/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mcollina/boot-in-the-arse/issues/2/comments","events_url":"https://api.github.com/repos/mcollina/boot-in-the-arse/issues/2/events","html_url":"https://github.com/mcollina/boot-in-the-arse/issues/2","id":173746047,"number":2,"title":"How to use","user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars.githubusercontent.com/u/52195?v=3","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-29T10:40:09Z","updated_at":"2016-08-29T10:40:09Z","closed_at":null,"body":"I am wondering what is the best way to use `boot-in-the-arse`. Currently there are two options:\r\n\r\na. subclassing\r\nb. passing another server through the constructor\r\n\r\nCase a. works as expected, but it fills the object with the `boot-in-the-arse` properties. It would probably need to be more documented.\r\n\r\nCase b. uses the passed object as the `context` and `this` in the plugin loading. However it does not expose `use`, the `'start'` event and the upcoming `ready()`  and `after()` #1.\r\n\r\nI think there should be a _blessed_ way on using this.\r\nWhat should we do?\r\n\r\nI proposed we auto-bind `use`, `ready` and `after` in case b), so that they work as expected.\r\n\r\ncc @mcdonnelldean @lucamaraschi"}}
{"actor":{"display_login":"mcollina"}}