{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/pulls/4","id":31984201,"html_url":"https://github.com/mralexjuarez/mkdir-vagrant-structure/pull/4","diff_url":"https://github.com/mralexjuarez/mkdir-vagrant-structure/pull/4.diff","patch_url":"https://github.com/mralexjuarez/mkdir-vagrant-structure/pull/4.patch","issue_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/issues/4","number":4,"state":"closed","locked":false,"title":"Add cleanup loop to prune unused boxes based on unavailable images","user":{"login":"StephenBrown2","id":1148665,"avatar_url":"https://avatars.githubusercontent.com/u/1148665?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBrown2","html_url":"https://github.com/StephenBrown2","followers_url":"https://api.github.com/users/StephenBrown2/followers","following_url":"https://api.github.com/users/StephenBrown2/following{/other_user}","gists_url":"https://api.github.com/users/StephenBrown2/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBrown2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBrown2/subscriptions","organizations_url":"https://api.github.com/users/StephenBrown2/orgs","repos_url":"https://api.github.com/users/StephenBrown2/repos","events_url":"https://api.github.com/users/StephenBrown2/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBrown2/received_events","type":"User","site_admin":false},"body":"This PR primarily adds a loop at the end that goes through any directories in the current directory and removes any that rely on images that are not available. It ignores any directories that we just created, and since I have my ssh-keys symlinked in the same directory, it ignores symlinks as well.\r\n\r\nAs a side benefit, it also changes the 'mkdir -p' system call to the native ruby FileUtils.mkdir_p function, which does the same thing.","created_at":"2015-03-26T02:21:58Z","updated_at":"2015-03-27T15:08:27Z","closed_at":"2015-03-27T15:08:27Z","merged_at":"2015-03-27T15:08:27Z","merge_commit_sha":"4bf881a54b62427ca40692f2a0a294a2c98b691e","assignee":{"login":"mralexjuarez","id":3913032,"avatar_url":"https://avatars.githubusercontent.com/u/3913032?v=3","gravatar_id":"","url":"https://api.github.com/users/mralexjuarez","html_url":"https://github.com/mralexjuarez","followers_url":"https://api.github.com/users/mralexjuarez/followers","following_url":"https://api.github.com/users/mralexjuarez/following{/other_user}","gists_url":"https://api.github.com/users/mralexjuarez/gists{/gist_id}","starred_url":"https://api.github.com/users/mralexjuarez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mralexjuarez/subscriptions","organizations_url":"https://api.github.com/users/mralexjuarez/orgs","repos_url":"https://api.github.com/users/mralexjuarez/repos","events_url":"https://api.github.com/users/mralexjuarez/events{/privacy}","received_events_url":"https://api.github.com/users/mralexjuarez/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/pulls/4/commits","review_comments_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/pulls/4/comments","review_comment_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/issues/4/comments","statuses_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/statuses/3c7cc0b1fbe72bb6dd7c0908fbc6703ba7cef52c","head":{"label":"StephenBrown2:cleanup","ref":"cleanup","sha":"3c7cc0b1fbe72bb6dd7c0908fbc6703ba7cef52c","user":{"login":"StephenBrown2","id":1148665,"avatar_url":"https://avatars.githubusercontent.com/u/1148665?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBrown2","html_url":"https://github.com/StephenBrown2","followers_url":"https://api.github.com/users/StephenBrown2/followers","following_url":"https://api.github.com/users/StephenBrown2/following{/other_user}","gists_url":"https://api.github.com/users/StephenBrown2/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBrown2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBrown2/subscriptions","organizations_url":"https://api.github.com/users/StephenBrown2/orgs","repos_url":"https://api.github.com/users/StephenBrown2/repos","events_url":"https://api.github.com/users/StephenBrown2/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBrown2/received_events","type":"User","site_admin":false},"repo":{"id":22174138,"name":"mkdir-vagrant-structure","full_name":"StephenBrown2/mkdir-vagrant-structure","owner":{"login":"StephenBrown2","id":1148665,"avatar_url":"https://avatars.githubusercontent.com/u/1148665?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBrown2","html_url":"https://github.com/StephenBrown2","followers_url":"https://api.github.com/users/StephenBrown2/followers","following_url":"https://api.github.com/users/StephenBrown2/following{/other_user}","gists_url":"https://api.github.com/users/StephenBrown2/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBrown2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBrown2/subscriptions","organizations_url":"https://api.github.com/users/StephenBrown2/orgs","repos_url":"https://api.github.com/users/StephenBrown2/repos","events_url":"https://api.github.com/users/StephenBrown2/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBrown2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StephenBrown2/mkdir-vagrant-structure","description":"Create an directory structure that makes it a little easier for me to spin up Rackspace Cloud servers using vagrant.","fork":true,"url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure","forks_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/forks","keys_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/teams","hooks_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/hooks","issue_events_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/issues/events{/number}","events_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/events","assignees_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/assignees{/user}","branches_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/branches{/branch}","tags_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/tags","blobs_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/git/refs{/sha}","trees_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/statuses/{sha}","languages_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/languages","stargazers_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/stargazers","contributors_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/contributors","subscribers_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/subscribers","subscription_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/subscription","commits_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/commits{/sha}","git_commits_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/git/commits{/sha}","comments_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/comments{/number}","issue_comment_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/issues/comments{/number}","contents_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/contents/{+path}","compare_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/merges","archive_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/downloads","issues_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/issues{/number}","pulls_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/pulls{/number}","milestones_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/milestones{/number}","notifications_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/labels{/name}","releases_url":"https://api.github.com/repos/StephenBrown2/mkdir-vagrant-structure/releases{/id}","created_at":"2014-07-23T20:03:19Z","updated_at":"2015-03-25T23:17:48Z","pushed_at":"2015-03-26T02:17:37Z","git_url":"git://github.com/StephenBrown2/mkdir-vagrant-structure.git","ssh_url":"git@github.com:StephenBrown2/mkdir-vagrant-structure.git","clone_url":"https://github.com/StephenBrown2/mkdir-vagrant-structure.git","svn_url":"https://github.com/StephenBrown2/mkdir-vagrant-structure","homepage":null,"size":127,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mralexjuarez:master","ref":"master","sha":"485c86f93cd10a21796ab08dd65ccab425af7a59","user":{"login":"mralexjuarez","id":3913032,"avatar_url":"https://avatars.githubusercontent.com/u/3913032?v=3","gravatar_id":"","url":"https://api.github.com/users/mralexjuarez","html_url":"https://github.com/mralexjuarez","followers_url":"https://api.github.com/users/mralexjuarez/followers","following_url":"https://api.github.com/users/mralexjuarez/following{/other_user}","gists_url":"https://api.github.com/users/mralexjuarez/gists{/gist_id}","starred_url":"https://api.github.com/users/mralexjuarez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mralexjuarez/subscriptions","organizations_url":"https://api.github.com/users/mralexjuarez/orgs","repos_url":"https://api.github.com/users/mralexjuarez/repos","events_url":"https://api.github.com/users/mralexjuarez/events{/privacy}","received_events_url":"https://api.github.com/users/mralexjuarez/received_events","type":"User","site_admin":false},"repo":{"id":21603958,"name":"mkdir-vagrant-structure","full_name":"mralexjuarez/mkdir-vagrant-structure","owner":{"login":"mralexjuarez","id":3913032,"avatar_url":"https://avatars.githubusercontent.com/u/3913032?v=3","gravatar_id":"","url":"https://api.github.com/users/mralexjuarez","html_url":"https://github.com/mralexjuarez","followers_url":"https://api.github.com/users/mralexjuarez/followers","following_url":"https://api.github.com/users/mralexjuarez/following{/other_user}","gists_url":"https://api.github.com/users/mralexjuarez/gists{/gist_id}","starred_url":"https://api.github.com/users/mralexjuarez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mralexjuarez/subscriptions","organizations_url":"https://api.github.com/users/mralexjuarez/orgs","repos_url":"https://api.github.com/users/mralexjuarez/repos","events_url":"https://api.github.com/users/mralexjuarez/events{/privacy}","received_events_url":"https://api.github.com/users/mralexjuarez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mralexjuarez/mkdir-vagrant-structure","description":"Create an directory structure that makes it a little easier for me to spin up Rackspace Cloud servers using vagrant.","fork":false,"url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure","forks_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/forks","keys_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/teams","hooks_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/hooks","issue_events_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/issues/events{/number}","events_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/events","assignees_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/assignees{/user}","branches_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/branches{/branch}","tags_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/tags","blobs_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/git/refs{/sha}","trees_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/statuses/{sha}","languages_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/languages","stargazers_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/stargazers","contributors_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/contributors","subscribers_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/subscribers","subscription_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/subscription","commits_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/commits{/sha}","git_commits_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/git/commits{/sha}","comments_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/comments{/number}","issue_comment_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/issues/comments{/number}","contents_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/contents/{+path}","compare_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/merges","archive_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/downloads","issues_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/issues{/number}","pulls_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/pulls{/number}","milestones_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/milestones{/number}","notifications_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/labels{/name}","releases_url":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/releases{/id}","created_at":"2014-07-08T07:56:23Z","updated_at":"2014-11-14T21:21:04Z","pushed_at":"2015-03-27T15:08:27Z","git_url":"git://github.com/mralexjuarez/mkdir-vagrant-structure.git","ssh_url":"git@github.com:mralexjuarez/mkdir-vagrant-structure.git","clone_url":"https://github.com/mralexjuarez/mkdir-vagrant-structure.git","svn_url":"https://github.com/mralexjuarez/mkdir-vagrant-structure","homepage":null,"size":223,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/pulls/4"},"html":{"href":"https://github.com/mralexjuarez/mkdir-vagrant-structure/pull/4"},"issue":{"href":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/issues/4"},"comments":{"href":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/mralexjuarez/mkdir-vagrant-structure/statuses/3c7cc0b1fbe72bb6dd7c0908fbc6703ba7cef52c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mralexjuarez","id":3913032,"avatar_url":"https://avatars.githubusercontent.com/u/3913032?v=3","gravatar_id":"","url":"https://api.github.com/users/mralexjuarez","html_url":"https://github.com/mralexjuarez","followers_url":"https://api.github.com/users/mralexjuarez/followers","following_url":"https://api.github.com/users/mralexjuarez/following{/other_user}","gists_url":"https://api.github.com/users/mralexjuarez/gists{/gist_id}","starred_url":"https://api.github.com/users/mralexjuarez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mralexjuarez/subscriptions","organizations_url":"https://api.github.com/users/mralexjuarez/orgs","repos_url":"https://api.github.com/users/mralexjuarez/repos","events_url":"https://api.github.com/users/mralexjuarez/events{/privacy}","received_events_url":"https://api.github.com/users/mralexjuarez/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":23,"deletions":1,"changed_files":1}}