{"pull_request":{"title":"Keepalive - easy way to get started with watches","merged_at":"2011-12-16T22:39:57Z","user":{"id":1,"login":"mojombo","url":"https://api.github.com/users/mojombo","avatar_url":"https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"25c7c18223fb42a4c6ae1c8db6f50f9b"},"created_at":"2011-12-10T02:09:20Z","state":"closed","updated_at":"2011-12-16T22:39:58Z","review_comments":1,"id":579888,"patch_url":"https://github.com/mojombo/god/pull/71.patch","html_url":"https://github.com/mojombo/god/pull/71","closed_at":"2011-12-16T22:39:57Z","deletions":2,"mergeable":null,"issue_url":"https://github.com/mojombo/god/issues/71","base":{"user":{"id":1,"login":"mojombo","url":"https://api.github.com/users/mojombo","avatar_url":"https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"25c7c18223fb42a4c6ae1c8db6f50f9b"},"ref":"master","sha":"da4081852968b1665cf4a3465dd8720a7f4567ae","repo":{"open_issues":33,"created_at":"2008-01-13T05:16:23Z","watchers":954,"git_url":"git://github.com/mojombo/god.git","updated_at":"2011-12-16T22:39:57Z","fork":false,"id":28,"language":"Ruby","html_url":"https://github.com/mojombo/god","name":"god","description":"Ruby process monitor","master_branch":"master","url":"https://api.github.com/repos/mojombo/god","forks":144,"ssh_url":"git@github.com:mojombo/god.git","clone_url":"https://github.com/mojombo/god.git","pushed_at":"2011-12-16T22:39:55Z","owner":{"id":1,"login":"mojombo","url":"https://api.github.com/users/mojombo","avatar_url":"https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"25c7c18223fb42a4c6ae1c8db6f50f9b"},"homepage":"http://god.rubyforge.org","size":424,"svn_url":"https://svn.github.com/mojombo/god","private":false},"label":"mojombo:master"},"body":"This branch adds a keepalive convenience method to make it stupid simple to get started with god. It makes it easier to put together a Getting Started guide (which this branch also includes). It looks like this:\r\n\r\n```ruby\r\nGod.watch do |w|\r\n  w.name = \"simple\"\r\n  w.start = \"ruby /full/path/to/simple.rb\"\r\n  w.keepalive\r\nend\r\n```\r\n\r\nIt can also take a few simple options:\r\n\r\n```ruby\r\nGod.watch do |w|\r\n  w.name = \"simple\"\r\n  w.start = \"ruby /full/path/to/simple.rb\"\r\n  w.keepalive(:memory_max => 150.megabytes,\r\n              :cpu_max => 50.percent)\r\nend\r\n```\r\n\r\nCheck out the new docs for a full explanation of usage.\r\n\r\nTODO\r\n\r\n[x] Finish documenting keepalive method in code.\r\n[x] Use events if they are available.","commits":5,"additions":1515,"number":71,"url":"https://api.github.com/repos/mojombo/god/pulls/71","diff_url":"https://github.com/mojombo/god/pull/71.diff","merged_by":{"id":1,"login":"mojombo","url":"https://api.github.com/users/mojombo","avatar_url":"https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"25c7c18223fb42a4c6ae1c8db6f50f9b"},"_links":{"review_comments":{"href":"https://api.github.com/repos/mojombo/god/pulls/71/comments"},"html":{"href":"https://github.com/mojombo/god/pull/71"},"self":{"href":"https://api.github.com/repos/mojombo/god/pulls/71"},"comments":{"href":"https://api.github.com/repos/mojombo/god/issues/71/comments"}},"comments":2,"head":{"user":{"id":1,"login":"mojombo","url":"https://api.github.com/users/mojombo","avatar_url":"https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"25c7c18223fb42a4c6ae1c8db6f50f9b"},"ref":"keepalive","sha":"8148b9011a452fca1644bd2b6e88bfe638ec75ba","repo":{"open_issues":33,"created_at":"2008-01-13T05:16:23Z","watchers":954,"git_url":"git://github.com/mojombo/god.git","updated_at":"2011-12-16T22:39:57Z","fork":false,"id":28,"language":"Ruby","html_url":"https://github.com/mojombo/god","name":"god","description":"Ruby process monitor","master_branch":"master","url":"https://api.github.com/repos/mojombo/god","forks":144,"ssh_url":"git@github.com:mojombo/god.git","clone_url":"https://github.com/mojombo/god.git","pushed_at":"2011-12-16T22:39:55Z","owner":{"id":1,"login":"mojombo","url":"https://api.github.com/users/mojombo","avatar_url":"https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"25c7c18223fb42a4c6ae1c8db6f50f9b"},"homepage":"http://god.rubyforge.org","size":424,"svn_url":"https://svn.github.com/mojombo/god","private":false},"label":"mojombo:keepalive"},"changed_files":6,"merged":true},"number":71,"action":"closed"}