-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsparrowfile
45 lines (35 loc) · 838 Bytes
/
sparrowfile
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
my $user = 'root';
package-install 'ruby';
bash 'zef install Path::Iterator';
bash 'zef install https://github.com/Bailador/Bailador.git';
bash 'zef install Text::Markdown';
bash 'gem install sass --no-ri --no-rdoc';
user $user;
directory-create '/root/work', %(
recursive => 1 ,
owner => $user,
);
bash q:to/HERE/, %(user => $user );
set -e
cd ~/work
if test -d ./bailador; then
cd bailador
git pull
cd ../
else
git clone https://github.com/Bailador/Bailador.git
cd ../
fi
HERE
bash q:to/HERE/, %(user => $user );
set -e
cd ~/work
if test -d ./bailador.net; then
cd bailador.net
git pull
cd ../
else
git clone https://github.com/melezhik/bailador.net.git
fi
HERE
bash "cd ~/work/bailador.net && sass public/scss/main.scss public/css/style.css", %( user => $user );