#!/bin/bash # # Vagrant # # Parameters SHARE="$1" # Include basic functions source $SHARE/templater/functions || exit 1 # Vagrant implementation function templater_vagrant { if [ ! -e "Vagrantfile" ]; then templater_echo "Setting up vagrant..." #templater_checkout_develop vagrant init echo '.vagrant' >> .gitignore #git commit -a -m "Adds vagrant support" else templater_echo "Vagrant already set" fi } # Dispatch templater_vagrant