aboutsummaryrefslogtreecommitdiff
path: root/share/templater/vagrant/setup
blob: 7b39cc2a4f50b63b2144223a1fb3b6f2554ae626 (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