aboutsummaryrefslogtreecommitdiff
path: root/share/templater/vagrant/setup
blob: 0550034de2e8c3b429413eef0d53ab467ae8ec9f (plain)
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
#!/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