-
-
Save zetc0de/ab3997809417676b2477c4a139fdf000 to your computer and use it in GitHub Desktop.
Simple Vagrant runner, just for lazy user =)
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
#!/bin/bash | |
cm=$1 | |
if [[ $cm == 'start' ]]; then | |
cd ~/Vagrant/labs && | |
vagrant up && | |
vagrant ssh | |
elif [[ $cm == 'stop' ]]; then | |
cd ~/Vagrant/labs && | |
vagrant halt | |
else | |
echo "Usage : labs start | stop" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment