{"action":"created","issue":{"url":"https://api.github.com/repos/Raybeam/zartan/issues/72","labels_url":"https://api.github.com/repos/Raybeam/zartan/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/Raybeam/zartan/issues/72/comments","events_url":"https://api.github.com/repos/Raybeam/zartan/issues/72/events","html_url":"https://github.com/Raybeam/zartan/pull/72","id":96885610,"number":72,"title":"Feature/purge joyent","user":{"login":"zeo210","id":3088109,"avatar_url":"https://avatars.githubusercontent.com/u/3088109?v=3","gravatar_id":"","url":"https://api.github.com/users/zeo210","html_url":"https://github.com/zeo210","followers_url":"https://api.github.com/users/zeo210/followers","following_url":"https://api.github.com/users/zeo210/following{/other_user}","gists_url":"https://api.github.com/users/zeo210/gists{/gist_id}","starred_url":"https://api.github.com/users/zeo210/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeo210/subscriptions","organizations_url":"https://api.github.com/users/zeo210/orgs","repos_url":"https://api.github.com/users/zeo210/repos","events_url":"https://api.github.com/users/zeo210/events{/privacy}","received_events_url":"https://api.github.com/users/zeo210/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"davidh-raybeam","id":1907013,"avatar_url":"https://avatars.githubusercontent.com/u/1907013?v=3","gravatar_id":"","url":"https://api.github.com/users/davidh-raybeam","html_url":"https://github.com/davidh-raybeam","followers_url":"https://api.github.com/users/davidh-raybeam/followers","following_url":"https://api.github.com/users/davidh-raybeam/following{/other_user}","gists_url":"https://api.github.com/users/davidh-raybeam/gists{/gist_id}","starred_url":"https://api.github.com/users/davidh-raybeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidh-raybeam/subscriptions","organizations_url":"https://api.github.com/users/davidh-raybeam/orgs","repos_url":"https://api.github.com/users/davidh-raybeam/repos","events_url":"https://api.github.com/users/davidh-raybeam/events{/privacy}","received_events_url":"https://api.github.com/users/davidh-raybeam/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-07-23T19:11:30Z","updated_at":"2015-07-23T19:37:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Raybeam/zartan/pulls/72","html_url":"https://github.com/Raybeam/zartan/pull/72","diff_url":"https://github.com/Raybeam/zartan/pull/72.diff","patch_url":"https://github.com/Raybeam/zartan/pull/72.patch"},"body":"Deletes all of the machines from a source you run the purge_servers() function on.\r\n\r\nExample usage:\r\n- grab a Joyent Source\r\n  > \\> j = Source::Joyent.first\r\n\r\n- run purge_servers through your source\r\n  > \\> j.purse_servers\r\n  > What is 1 + 2 + 3 + 4? Put answer as a parameter.\r\n  >  => false\r\n\r\n- put answer in as parameter\r\n  > \\> j.purge_servers(1)\r\n  > WRONG!\r\n  >  => false \r\n  > \\> j.purge_servers(10)\r\n  > deleteing 0a8bb2c (id: 9e16b64f-c80e-6327-a5d1-e6961b7c1722)\r\n  > deleteing 716bfc8 (id: dbb73bc0-117e-c9a9-d781-cf8d792c6fd3)\r\n  >  => true\r\n\r\nNote: Resque isn't working on my machine again (rebooted) so I am unable to test with any of the background processes. The function does what is needed but I am unsure if any of the background processes would take care of making sure the database is consistent or not."},"comment":{"url":"https://api.github.com/repos/Raybeam/zartan/issues/comments/124219869","html_url":"https://github.com/Raybeam/zartan/pull/72#issuecomment-124219869","issue_url":"https://api.github.com/repos/Raybeam/zartan/issues/72","id":124219869,"user":{"login":"zeo210","id":3088109,"avatar_url":"https://avatars.githubusercontent.com/u/3088109?v=3","gravatar_id":"","url":"https://api.github.com/users/zeo210","html_url":"https://github.com/zeo210","followers_url":"https://api.github.com/users/zeo210/followers","following_url":"https://api.github.com/users/zeo210/following{/other_user}","gists_url":"https://api.github.com/users/zeo210/gists{/gist_id}","starred_url":"https://api.github.com/users/zeo210/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeo210/subscriptions","organizations_url":"https://api.github.com/users/zeo210/orgs","repos_url":"https://api.github.com/users/zeo210/repos","events_url":"https://api.github.com/users/zeo210/events{/privacy}","received_events_url":"https://api.github.com/users/zeo210/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T19:37:13Z","updated_at":"2015-07-23T19:37:13Z","body":"Rebooted again and resque is now working. I'll test again with background processes and will make changes if necessary."}}