{"action":"created","comment":{"url":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/comments/62104619","id":62104619,"diff_hunk":"@@ -0,0 +1,37 @@\n+require 'rabbit_stew/subscriber/rabbit_subscriber'\n+require 'rabbit_stew/subscriber/message_handle_wrapper'\n+require 'rabbit_stew/daemon'\n+\n+module RabbitStew\n+  module Service\n+    class Runner\n+\n+      def start(name, log_dir:, update_sites: true, &block)\n+        @update_sites = update_sites\n+        c = RabbitStew.validated_config","path":"lib/rabbit_stew/service/runner.rb","position":11,"original_position":11,"commit_id":"009d74b72201e11a560f3c68ba4fdbc18c73b9b2","original_commit_id":"009d74b72201e11a560f3c68ba4fdbc18c73b9b2","user":{"login":"wintonpc","id":2847818,"avatar_url":"https://avatars.githubusercontent.com/u/2847818?v=3","gravatar_id":"","url":"https://api.github.com/users/wintonpc","html_url":"https://github.com/wintonpc","followers_url":"https://api.github.com/users/wintonpc/followers","following_url":"https://api.github.com/users/wintonpc/following{/other_user}","gists_url":"https://api.github.com/users/wintonpc/gists{/gist_id}","starred_url":"https://api.github.com/users/wintonpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wintonpc/subscriptions","organizations_url":"https://api.github.com/users/wintonpc/orgs","repos_url":"https://api.github.com/users/wintonpc/repos","events_url":"https://api.github.com/users/wintonpc/events{/privacy}","received_events_url":"https://api.github.com/users/wintonpc/received_events","type":"User","site_admin":false},"body":"If validation fails, does the error still get logged in `log_dir`?","created_at":"2016-05-04T20:02:42Z","updated_at":"2016-05-04T20:02:42Z","html_url":"https://github.com/indigobio/rabbit_stew/pull/1#discussion_r62104619","pull_request_url":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/comments/62104619"},"html":{"href":"https://github.com/indigobio/rabbit_stew/pull/1#discussion_r62104619"},"pull_request":{"href":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/1","id":68762529,"html_url":"https://github.com/indigobio/rabbit_stew/pull/1","diff_url":"https://github.com/indigobio/rabbit_stew/pull/1.diff","patch_url":"https://github.com/indigobio/rabbit_stew/pull/1.patch","issue_url":"https://api.github.com/repos/indigobio/rabbit_stew/issues/1","number":1,"state":"open","locked":false,"title":"[AR-1769] Create daemon abstraction for rabbit","user":{"login":"jwliechty","id":713567,"avatar_url":"https://avatars.githubusercontent.com/u/713567?v=3","gravatar_id":"","url":"https://api.github.com/users/jwliechty","html_url":"https://github.com/jwliechty","followers_url":"https://api.github.com/users/jwliechty/followers","following_url":"https://api.github.com/users/jwliechty/following{/other_user}","gists_url":"https://api.github.com/users/jwliechty/gists{/gist_id}","starred_url":"https://api.github.com/users/jwliechty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwliechty/subscriptions","organizations_url":"https://api.github.com/users/jwliechty/orgs","repos_url":"https://api.github.com/users/jwliechty/repos","events_url":"https://api.github.com/users/jwliechty/events{/privacy}","received_events_url":"https://api.github.com/users/jwliechty/received_events","type":"User","site_admin":false},"body":"[AR-1769]\r\n\r\nThis is the second iteration of a proposal to abstract the boilerplate\r\ncode of creating rabbit daemons to a gem that can be used across ruby\r\nprojects: both rails based and not. The goal of this abstraction was to\r\nmake creating a new daemon trivial as well as simplifying the testing\r\nrequired for verifying the rabbit messages are processed properly.\r\n\r\n[AR-1769]: https://indigobio.atlassian.net/browse/AR-1769","created_at":"2016-05-03T19:39:41Z","updated_at":"2016-05-04T20:02:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aae76aebd934e496dfd8f9ad3beb47410362f16d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/1/commits","review_comments_url":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/1/comments","review_comment_url":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/indigobio/rabbit_stew/issues/1/comments","statuses_url":"https://api.github.com/repos/indigobio/rabbit_stew/statuses/009d74b72201e11a560f3c68ba4fdbc18c73b9b2","head":{"label":"indigobio:t-rabbit_abstraction","ref":"t-rabbit_abstraction","sha":"009d74b72201e11a560f3c68ba4fdbc18c73b9b2","user":{"login":"indigobio","id":711805,"avatar_url":"https://avatars.githubusercontent.com/u/711805?v=3","gravatar_id":"","url":"https://api.github.com/users/indigobio","html_url":"https://github.com/indigobio","followers_url":"https://api.github.com/users/indigobio/followers","following_url":"https://api.github.com/users/indigobio/following{/other_user}","gists_url":"https://api.github.com/users/indigobio/gists{/gist_id}","starred_url":"https://api.github.com/users/indigobio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indigobio/subscriptions","organizations_url":"https://api.github.com/users/indigobio/orgs","repos_url":"https://api.github.com/users/indigobio/repos","events_url":"https://api.github.com/users/indigobio/events{/privacy}","received_events_url":"https://api.github.com/users/indigobio/received_events","type":"Organization","site_admin":false},"repo":{"id":57974718,"name":"rabbit_stew","full_name":"indigobio/rabbit_stew","owner":{"login":"indigobio","id":711805,"avatar_url":"https://avatars.githubusercontent.com/u/711805?v=3","gravatar_id":"","url":"https://api.github.com/users/indigobio","html_url":"https://github.com/indigobio","followers_url":"https://api.github.com/users/indigobio/followers","following_url":"https://api.github.com/users/indigobio/following{/other_user}","gists_url":"https://api.github.com/users/indigobio/gists{/gist_id}","starred_url":"https://api.github.com/users/indigobio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indigobio/subscriptions","organizations_url":"https://api.github.com/users/indigobio/orgs","repos_url":"https://api.github.com/users/indigobio/repos","events_url":"https://api.github.com/users/indigobio/events{/privacy}","received_events_url":"https://api.github.com/users/indigobio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/indigobio/rabbit_stew","description":"Abstraction for creating AMQP daemons in Ruby","fork":false,"url":"https://api.github.com/repos/indigobio/rabbit_stew","forks_url":"https://api.github.com/repos/indigobio/rabbit_stew/forks","keys_url":"https://api.github.com/repos/indigobio/rabbit_stew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indigobio/rabbit_stew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indigobio/rabbit_stew/teams","hooks_url":"https://api.github.com/repos/indigobio/rabbit_stew/hooks","issue_events_url":"https://api.github.com/repos/indigobio/rabbit_stew/issues/events{/number}","events_url":"https://api.github.com/repos/indigobio/rabbit_stew/events","assignees_url":"https://api.github.com/repos/indigobio/rabbit_stew/assignees{/user}","branches_url":"https://api.github.com/repos/indigobio/rabbit_stew/branches{/branch}","tags_url":"https://api.github.com/repos/indigobio/rabbit_stew/tags","blobs_url":"https://api.github.com/repos/indigobio/rabbit_stew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indigobio/rabbit_stew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indigobio/rabbit_stew/git/refs{/sha}","trees_url":"https://api.github.com/repos/indigobio/rabbit_stew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indigobio/rabbit_stew/statuses/{sha}","languages_url":"https://api.github.com/repos/indigobio/rabbit_stew/languages","stargazers_url":"https://api.github.com/repos/indigobio/rabbit_stew/stargazers","contributors_url":"https://api.github.com/repos/indigobio/rabbit_stew/contributors","subscribers_url":"https://api.github.com/repos/indigobio/rabbit_stew/subscribers","subscription_url":"https://api.github.com/repos/indigobio/rabbit_stew/subscription","commits_url":"https://api.github.com/repos/indigobio/rabbit_stew/commits{/sha}","git_commits_url":"https://api.github.com/repos/indigobio/rabbit_stew/git/commits{/sha}","comments_url":"https://api.github.com/repos/indigobio/rabbit_stew/comments{/number}","issue_comment_url":"https://api.github.com/repos/indigobio/rabbit_stew/issues/comments{/number}","contents_url":"https://api.github.com/repos/indigobio/rabbit_stew/contents/{+path}","compare_url":"https://api.github.com/repos/indigobio/rabbit_stew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indigobio/rabbit_stew/merges","archive_url":"https://api.github.com/repos/indigobio/rabbit_stew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indigobio/rabbit_stew/downloads","issues_url":"https://api.github.com/repos/indigobio/rabbit_stew/issues{/number}","pulls_url":"https://api.github.com/repos/indigobio/rabbit_stew/pulls{/number}","milestones_url":"https://api.github.com/repos/indigobio/rabbit_stew/milestones{/number}","notifications_url":"https://api.github.com/repos/indigobio/rabbit_stew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indigobio/rabbit_stew/labels{/name}","releases_url":"https://api.github.com/repos/indigobio/rabbit_stew/releases{/id}","deployments_url":"https://api.github.com/repos/indigobio/rabbit_stew/deployments","created_at":"2016-05-03T14:16:42Z","updated_at":"2016-05-03T14:16:42Z","pushed_at":"2016-05-03T19:50:48Z","git_url":"git://github.com/indigobio/rabbit_stew.git","ssh_url":"git@github.com:indigobio/rabbit_stew.git","clone_url":"https://github.com/indigobio/rabbit_stew.git","svn_url":"https://github.com/indigobio/rabbit_stew","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":null,"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":0,"default_branch":"develop"}},"base":{"label":"indigobio:develop","ref":"develop","sha":"e4721c484f5e6948a8f763a5eb80b6957e4a3094","user":{"login":"indigobio","id":711805,"avatar_url":"https://avatars.githubusercontent.com/u/711805?v=3","gravatar_id":"","url":"https://api.github.com/users/indigobio","html_url":"https://github.com/indigobio","followers_url":"https://api.github.com/users/indigobio/followers","following_url":"https://api.github.com/users/indigobio/following{/other_user}","gists_url":"https://api.github.com/users/indigobio/gists{/gist_id}","starred_url":"https://api.github.com/users/indigobio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indigobio/subscriptions","organizations_url":"https://api.github.com/users/indigobio/orgs","repos_url":"https://api.github.com/users/indigobio/repos","events_url":"https://api.github.com/users/indigobio/events{/privacy}","received_events_url":"https://api.github.com/users/indigobio/received_events","type":"Organization","site_admin":false},"repo":{"id":57974718,"name":"rabbit_stew","full_name":"indigobio/rabbit_stew","owner":{"login":"indigobio","id":711805,"avatar_url":"https://avatars.githubusercontent.com/u/711805?v=3","gravatar_id":"","url":"https://api.github.com/users/indigobio","html_url":"https://github.com/indigobio","followers_url":"https://api.github.com/users/indigobio/followers","following_url":"https://api.github.com/users/indigobio/following{/other_user}","gists_url":"https://api.github.com/users/indigobio/gists{/gist_id}","starred_url":"https://api.github.com/users/indigobio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indigobio/subscriptions","organizations_url":"https://api.github.com/users/indigobio/orgs","repos_url":"https://api.github.com/users/indigobio/repos","events_url":"https://api.github.com/users/indigobio/events{/privacy}","received_events_url":"https://api.github.com/users/indigobio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/indigobio/rabbit_stew","description":"Abstraction for creating AMQP daemons in Ruby","fork":false,"url":"https://api.github.com/repos/indigobio/rabbit_stew","forks_url":"https://api.github.com/repos/indigobio/rabbit_stew/forks","keys_url":"https://api.github.com/repos/indigobio/rabbit_stew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indigobio/rabbit_stew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indigobio/rabbit_stew/teams","hooks_url":"https://api.github.com/repos/indigobio/rabbit_stew/hooks","issue_events_url":"https://api.github.com/repos/indigobio/rabbit_stew/issues/events{/number}","events_url":"https://api.github.com/repos/indigobio/rabbit_stew/events","assignees_url":"https://api.github.com/repos/indigobio/rabbit_stew/assignees{/user}","branches_url":"https://api.github.com/repos/indigobio/rabbit_stew/branches{/branch}","tags_url":"https://api.github.com/repos/indigobio/rabbit_stew/tags","blobs_url":"https://api.github.com/repos/indigobio/rabbit_stew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indigobio/rabbit_stew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indigobio/rabbit_stew/git/refs{/sha}","trees_url":"https://api.github.com/repos/indigobio/rabbit_stew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indigobio/rabbit_stew/statuses/{sha}","languages_url":"https://api.github.com/repos/indigobio/rabbit_stew/languages","stargazers_url":"https://api.github.com/repos/indigobio/rabbit_stew/stargazers","contributors_url":"https://api.github.com/repos/indigobio/rabbit_stew/contributors","subscribers_url":"https://api.github.com/repos/indigobio/rabbit_stew/subscribers","subscription_url":"https://api.github.com/repos/indigobio/rabbit_stew/subscription","commits_url":"https://api.github.com/repos/indigobio/rabbit_stew/commits{/sha}","git_commits_url":"https://api.github.com/repos/indigobio/rabbit_stew/git/commits{/sha}","comments_url":"https://api.github.com/repos/indigobio/rabbit_stew/comments{/number}","issue_comment_url":"https://api.github.com/repos/indigobio/rabbit_stew/issues/comments{/number}","contents_url":"https://api.github.com/repos/indigobio/rabbit_stew/contents/{+path}","compare_url":"https://api.github.com/repos/indigobio/rabbit_stew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indigobio/rabbit_stew/merges","archive_url":"https://api.github.com/repos/indigobio/rabbit_stew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indigobio/rabbit_stew/downloads","issues_url":"https://api.github.com/repos/indigobio/rabbit_stew/issues{/number}","pulls_url":"https://api.github.com/repos/indigobio/rabbit_stew/pulls{/number}","milestones_url":"https://api.github.com/repos/indigobio/rabbit_stew/milestones{/number}","notifications_url":"https://api.github.com/repos/indigobio/rabbit_stew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indigobio/rabbit_stew/labels{/name}","releases_url":"https://api.github.com/repos/indigobio/rabbit_stew/releases{/id}","deployments_url":"https://api.github.com/repos/indigobio/rabbit_stew/deployments","created_at":"2016-05-03T14:16:42Z","updated_at":"2016-05-03T14:16:42Z","pushed_at":"2016-05-03T19:50:48Z","git_url":"git://github.com/indigobio/rabbit_stew.git","ssh_url":"git@github.com:indigobio/rabbit_stew.git","clone_url":"https://github.com/indigobio/rabbit_stew.git","svn_url":"https://github.com/indigobio/rabbit_stew","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":null,"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":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/1"},"html":{"href":"https://github.com/indigobio/rabbit_stew/pull/1"},"issue":{"href":"https://api.github.com/repos/indigobio/rabbit_stew/issues/1"},"comments":{"href":"https://api.github.com/repos/indigobio/rabbit_stew/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/indigobio/rabbit_stew/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/indigobio/rabbit_stew/statuses/009d74b72201e11a560f3c68ba4fdbc18c73b9b2"}}}}