Created
August 12, 2016 10:17
-
-
Save shsteven/2304f17bcacf9794044be96cb64b97a2 to your computer and use it in GitHub Desktop.
Shutdown all vagrant boxes with this one liner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant global-status | ruby -ane '`cd #{$F[4]} && vagrant halt` if $F[3] == "running"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment