Skip to content

Instantly share code, notes, and snippets.

@shsteven
Created August 12, 2016 10:17
Show Gist options
  • Save shsteven/2304f17bcacf9794044be96cb64b97a2 to your computer and use it in GitHub Desktop.
Save shsteven/2304f17bcacf9794044be96cb64b97a2 to your computer and use it in GitHub Desktop.
Shutdown all vagrant boxes with this one liner
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