-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjet.symlink
executable file
·74 lines (66 loc) · 1.28 KB
/
jet.symlink
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
JET_DIRECTORY="/usr/local/jet"
function usage
{
echo "Usage: jet <command> [options]"
}
function install_base
{
/bin/bash "${JET_DIRECTORY}/shell/initial-setup.sh"
}
function install_puppet
{
/bin/bash "${JET_DIRECTORY}/shell/update-puppet.sh"
}
function install_librarian
{
/bin/bash "${JET_DIRECTORY}/shell/librarian-puppet.sh"
}
function apply_puppet
{
/bin/bash "${JET_DIRECTORY}/shell/apply-puppet.sh"
}
while [ "$1" != "" ]; do
case $1 in
install )
command=$1
;;
all )
install_base
install_puppet
install_librarian
exit
;;
apply )
command=$1
;;
base )
argument=$1
;;
puppet )
argument=$1
;;
librarian )
argument=$1
;;
-m | --manifest )
shift
JET_MANIFEST=$1
export JET_MANIFEST
;;
-p | --puppetfile )
shift
JET_PUPPETFILE=$1
export JET_PUPPETFILE
;;
-h | --help )
usage
exit
;;
* )
usage
exit 1
esac
shift
done
eval ${command}_${argument}