{"action":"created","comment":{"url":"https://api.github.com/repos/gamechanger/dusty/pulls/comments/53241612","id":53241612,"diff_hunk":"@@ -164,6 +164,13 @@ def initialize_docker_vm():\n         _ensure_cp_dir_exists()\n         _ensure_assets_dir_exists()\n \n+def shut_down_docker_vm():\n+    if docker_vm_is_running():\n+        check_call_demoted(['docker-machine', 'stop', constants.VM_MACHINE_NAME])","path":"dusty/systems/virtualbox/__init__.py","position":6,"original_position":6,"commit_id":"b698377fe0534c595b09521007394d3923584877","original_commit_id":"b698377fe0534c595b09521007394d3923584877","user":{"login":"paetling","id":3281726,"avatar_url":"https://avatars.githubusercontent.com/u/3281726?v=3","gravatar_id":"","url":"https://api.github.com/users/paetling","html_url":"https://github.com/paetling","followers_url":"https://api.github.com/users/paetling/followers","following_url":"https://api.github.com/users/paetling/following{/other_user}","gists_url":"https://api.github.com/users/paetling/gists{/gist_id}","starred_url":"https://api.github.com/users/paetling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paetling/subscriptions","organizations_url":"https://api.github.com/users/paetling/orgs","repos_url":"https://api.github.com/users/paetling/repos","events_url":"https://api.github.com/users/paetling/events{/privacy}","received_events_url":"https://api.github.com/users/paetling/received_events","type":"User","site_admin":false},"body":"should we not use docker-mahine. you know, for speed. ","created_at":"2016-02-17T22:25:58Z","updated_at":"2016-02-17T22:25:58Z","html_url":"https://github.com/gamechanger/dusty/pull/652#discussion_r53241612","pull_request_url":"https://api.github.com/repos/gamechanger/dusty/pulls/652","_links":{"self":{"href":"https://api.github.com/repos/gamechanger/dusty/pulls/comments/53241612"},"html":{"href":"https://github.com/gamechanger/dusty/pull/652#discussion_r53241612"},"pull_request":{"href":"https://api.github.com/repos/gamechanger/dusty/pulls/652"}}},"pull_request":{"url":"https://api.github.com/repos/gamechanger/dusty/pulls/652","id":59718498,"html_url":"https://github.com/gamechanger/dusty/pull/652","diff_url":"https://github.com/gamechanger/dusty/pull/652.diff","patch_url":"https://github.com/gamechanger/dusty/pull/652.patch","issue_url":"https://api.github.com/repos/gamechanger/dusty/issues/652","number":652,"state":"open","locked":false,"title":"Add dusty shutdown command","user":{"login":"thieman","id":1414305,"avatar_url":"https://avatars.githubusercontent.com/u/1414305?v=3","gravatar_id":"","url":"https://api.github.com/users/thieman","html_url":"https://github.com/thieman","followers_url":"https://api.github.com/users/thieman/followers","following_url":"https://api.github.com/users/thieman/following{/other_user}","gists_url":"https://api.github.com/users/thieman/gists{/gist_id}","starred_url":"https://api.github.com/users/thieman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thieman/subscriptions","organizations_url":"https://api.github.com/users/thieman/orgs","repos_url":"https://api.github.com/users/thieman/repos","events_url":"https://api.github.com/users/thieman/events{/privacy}","received_events_url":"https://api.github.com/users/thieman/received_events","type":"User","site_admin":false},"body":"@paetling cc @jcohen28 Should be fine doing this now since we maintain our own VM.","created_at":"2016-02-17T22:19:59Z","updated_at":"2016-02-17T22:25:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24a7760522aa514d387d754328871e5c5d0863a8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gamechanger/dusty/pulls/652/commits","review_comments_url":"https://api.github.com/repos/gamechanger/dusty/pulls/652/comments","review_comment_url":"https://api.github.com/repos/gamechanger/dusty/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gamechanger/dusty/issues/652/comments","statuses_url":"https://api.github.com/repos/gamechanger/dusty/statuses/b698377fe0534c595b09521007394d3923584877","head":{"label":"gamechanger:tnt-shutdown","ref":"tnt-shutdown","sha":"b698377fe0534c595b09521007394d3923584877","user":{"login":"gamechanger","id":43876,"avatar_url":"https://avatars.githubusercontent.com/u/43876?v=3","gravatar_id":"","url":"https://api.github.com/users/gamechanger","html_url":"https://github.com/gamechanger","followers_url":"https://api.github.com/users/gamechanger/followers","following_url":"https://api.github.com/users/gamechanger/following{/other_user}","gists_url":"https://api.github.com/users/gamechanger/gists{/gist_id}","starred_url":"https://api.github.com/users/gamechanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamechanger/subscriptions","organizations_url":"https://api.github.com/users/gamechanger/orgs","repos_url":"https://api.github.com/users/gamechanger/repos","events_url":"https://api.github.com/users/gamechanger/events{/privacy}","received_events_url":"https://api.github.com/users/gamechanger/received_events","type":"Organization","site_admin":false},"repo":{"id":35429030,"name":"dusty","full_name":"gamechanger/dusty","owner":{"login":"gamechanger","id":43876,"avatar_url":"https://avatars.githubusercontent.com/u/43876?v=3","gravatar_id":"","url":"https://api.github.com/users/gamechanger","html_url":"https://github.com/gamechanger","followers_url":"https://api.github.com/users/gamechanger/followers","following_url":"https://api.github.com/users/gamechanger/following{/other_user}","gists_url":"https://api.github.com/users/gamechanger/gists{/gist_id}","starred_url":"https://api.github.com/users/gamechanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamechanger/subscriptions","organizations_url":"https://api.github.com/users/gamechanger/orgs","repos_url":"https://api.github.com/users/gamechanger/repos","events_url":"https://api.github.com/users/gamechanger/events{/privacy}","received_events_url":"https://api.github.com/users/gamechanger/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gamechanger/dusty","description":"Docker-powered development environments","fork":false,"url":"https://api.github.com/repos/gamechanger/dusty","forks_url":"https://api.github.com/repos/gamechanger/dusty/forks","keys_url":"https://api.github.com/repos/gamechanger/dusty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gamechanger/dusty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gamechanger/dusty/teams","hooks_url":"https://api.github.com/repos/gamechanger/dusty/hooks","issue_events_url":"https://api.github.com/repos/gamechanger/dusty/issues/events{/number}","events_url":"https://api.github.com/repos/gamechanger/dusty/events","assignees_url":"https://api.github.com/repos/gamechanger/dusty/assignees{/user}","branches_url":"https://api.github.com/repos/gamechanger/dusty/branches{/branch}","tags_url":"https://api.github.com/repos/gamechanger/dusty/tags","blobs_url":"https://api.github.com/repos/gamechanger/dusty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gamechanger/dusty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gamechanger/dusty/git/refs{/sha}","trees_url":"https://api.github.com/repos/gamechanger/dusty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gamechanger/dusty/statuses/{sha}","languages_url":"https://api.github.com/repos/gamechanger/dusty/languages","stargazers_url":"https://api.github.com/repos/gamechanger/dusty/stargazers","contributors_url":"https://api.github.com/repos/gamechanger/dusty/contributors","subscribers_url":"https://api.github.com/repos/gamechanger/dusty/subscribers","subscription_url":"https://api.github.com/repos/gamechanger/dusty/subscription","commits_url":"https://api.github.com/repos/gamechanger/dusty/commits{/sha}","git_commits_url":"https://api.github.com/repos/gamechanger/dusty/git/commits{/sha}","comments_url":"https://api.github.com/repos/gamechanger/dusty/comments{/number}","issue_comment_url":"https://api.github.com/repos/gamechanger/dusty/issues/comments{/number}","contents_url":"https://api.github.com/repos/gamechanger/dusty/contents/{+path}","compare_url":"https://api.github.com/repos/gamechanger/dusty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gamechanger/dusty/merges","archive_url":"https://api.github.com/repos/gamechanger/dusty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gamechanger/dusty/downloads","issues_url":"https://api.github.com/repos/gamechanger/dusty/issues{/number}","pulls_url":"https://api.github.com/repos/gamechanger/dusty/pulls{/number}","milestones_url":"https://api.github.com/repos/gamechanger/dusty/milestones{/number}","notifications_url":"https://api.github.com/repos/gamechanger/dusty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gamechanger/dusty/labels{/name}","releases_url":"https://api.github.com/repos/gamechanger/dusty/releases{/id}","deployments_url":"https://api.github.com/repos/gamechanger/dusty/deployments","created_at":"2015-05-11T14:27:56Z","updated_at":"2016-02-17T16:07:24Z","pushed_at":"2016-02-17T22:19:59Z","git_url":"git://github.com/gamechanger/dusty.git","ssh_url":"git@github.com:gamechanger/dusty.git","clone_url":"https://github.com/gamechanger/dusty.git","svn_url":"https://github.com/gamechanger/dusty","homepage":"http://dusty.gc.com","size":9890,"stargazers_count":291,"watchers_count":291,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":16,"forks":6,"open_issues":16,"watchers":291,"default_branch":"master"}},"base":{"label":"gamechanger:master","ref":"master","sha":"997aadee31cfb770763d90d46d1c0d64037a9795","user":{"login":"gamechanger","id":43876,"avatar_url":"https://avatars.githubusercontent.com/u/43876?v=3","gravatar_id":"","url":"https://api.github.com/users/gamechanger","html_url":"https://github.com/gamechanger","followers_url":"https://api.github.com/users/gamechanger/followers","following_url":"https://api.github.com/users/gamechanger/following{/other_user}","gists_url":"https://api.github.com/users/gamechanger/gists{/gist_id}","starred_url":"https://api.github.com/users/gamechanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamechanger/subscriptions","organizations_url":"https://api.github.com/users/gamechanger/orgs","repos_url":"https://api.github.com/users/gamechanger/repos","events_url":"https://api.github.com/users/gamechanger/events{/privacy}","received_events_url":"https://api.github.com/users/gamechanger/received_events","type":"Organization","site_admin":false},"repo":{"id":35429030,"name":"dusty","full_name":"gamechanger/dusty","owner":{"login":"gamechanger","id":43876,"avatar_url":"https://avatars.githubusercontent.com/u/43876?v=3","gravatar_id":"","url":"https://api.github.com/users/gamechanger","html_url":"https://github.com/gamechanger","followers_url":"https://api.github.com/users/gamechanger/followers","following_url":"https://api.github.com/users/gamechanger/following{/other_user}","gists_url":"https://api.github.com/users/gamechanger/gists{/gist_id}","starred_url":"https://api.github.com/users/gamechanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamechanger/subscriptions","organizations_url":"https://api.github.com/users/gamechanger/orgs","repos_url":"https://api.github.com/users/gamechanger/repos","events_url":"https://api.github.com/users/gamechanger/events{/privacy}","received_events_url":"https://api.github.com/users/gamechanger/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gamechanger/dusty","description":"Docker-powered development environments","fork":false,"url":"https://api.github.com/repos/gamechanger/dusty","forks_url":"https://api.github.com/repos/gamechanger/dusty/forks","keys_url":"https://api.github.com/repos/gamechanger/dusty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gamechanger/dusty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gamechanger/dusty/teams","hooks_url":"https://api.github.com/repos/gamechanger/dusty/hooks","issue_events_url":"https://api.github.com/repos/gamechanger/dusty/issues/events{/number}","events_url":"https://api.github.com/repos/gamechanger/dusty/events","assignees_url":"https://api.github.com/repos/gamechanger/dusty/assignees{/user}","branches_url":"https://api.github.com/repos/gamechanger/dusty/branches{/branch}","tags_url":"https://api.github.com/repos/gamechanger/dusty/tags","blobs_url":"https://api.github.com/repos/gamechanger/dusty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gamechanger/dusty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gamechanger/dusty/git/refs{/sha}","trees_url":"https://api.github.com/repos/gamechanger/dusty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gamechanger/dusty/statuses/{sha}","languages_url":"https://api.github.com/repos/gamechanger/dusty/languages","stargazers_url":"https://api.github.com/repos/gamechanger/dusty/stargazers","contributors_url":"https://api.github.com/repos/gamechanger/dusty/contributors","subscribers_url":"https://api.github.com/repos/gamechanger/dusty/subscribers","subscription_url":"https://api.github.com/repos/gamechanger/dusty/subscription","commits_url":"https://api.github.com/repos/gamechanger/dusty/commits{/sha}","git_commits_url":"https://api.github.com/repos/gamechanger/dusty/git/commits{/sha}","comments_url":"https://api.github.com/repos/gamechanger/dusty/comments{/number}","issue_comment_url":"https://api.github.com/repos/gamechanger/dusty/issues/comments{/number}","contents_url":"https://api.github.com/repos/gamechanger/dusty/contents/{+path}","compare_url":"https://api.github.com/repos/gamechanger/dusty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gamechanger/dusty/merges","archive_url":"https://api.github.com/repos/gamechanger/dusty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gamechanger/dusty/downloads","issues_url":"https://api.github.com/repos/gamechanger/dusty/issues{/number}","pulls_url":"https://api.github.com/repos/gamechanger/dusty/pulls{/number}","milestones_url":"https://api.github.com/repos/gamechanger/dusty/milestones{/number}","notifications_url":"https://api.github.com/repos/gamechanger/dusty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gamechanger/dusty/labels{/name}","releases_url":"https://api.github.com/repos/gamechanger/dusty/releases{/id}","deployments_url":"https://api.github.com/repos/gamechanger/dusty/deployments","created_at":"2015-05-11T14:27:56Z","updated_at":"2016-02-17T16:07:24Z","pushed_at":"2016-02-17T22:19:59Z","git_url":"git://github.com/gamechanger/dusty.git","ssh_url":"git@github.com:gamechanger/dusty.git","clone_url":"https://github.com/gamechanger/dusty.git","svn_url":"https://github.com/gamechanger/dusty","homepage":"http://dusty.gc.com","size":9890,"stargazers_count":291,"watchers_count":291,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":16,"forks":6,"open_issues":16,"watchers":291,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gamechanger/dusty/pulls/652"},"html":{"href":"https://github.com/gamechanger/dusty/pull/652"},"issue":{"href":"https://api.github.com/repos/gamechanger/dusty/issues/652"},"comments":{"href":"https://api.github.com/repos/gamechanger/dusty/issues/652/comments"},"review_comments":{"href":"https://api.github.com/repos/gamechanger/dusty/pulls/652/comments"},"review_comment":{"href":"https://api.github.com/repos/gamechanger/dusty/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gamechanger/dusty/pulls/652/commits"},"statuses":{"href":"https://api.github.com/repos/gamechanger/dusty/statuses/b698377fe0534c595b09521007394d3923584877"}}}}