Sandman: A bash script to find all known Vagrant VMs and put them to sleeps. Zzz.

Sign up for a GitHub account Sign in All Gists colby / sandman Last active April 14, 2015 Code Revisions 3 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav Sandman: A bash script to find all known Vagrant VMs and put them to sleeps. Zzz. View sandman sandman Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 #!/usr/bin/env bash # variables vagrant= " " # functions errcho () { >&2 echo " $* " exit 1 } check () { which " $1 " || errcho " Missing dependency: $1 " } # deps vagrant= $( check vagrant ) # main printf " Putting VMs to bed. " while read line do set...

Linked on 2015-04-14 18:56:01 | Similar Links