-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
40 lines (34 loc) · 953 Bytes
/
Rakefile
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
ftp_user = "kicdej01@ftp.enomarket.si" # for rsync deployment
remote_root = "~/path/to/remote/" # for rsync deployment
desc "Runs preview"
task :preview do
system "staticmatic preview ."
end
desc "Builds the site"
task :build => 'styles:clear' do
puts "*** Building the site ***"
system "staticmatic build ."
end
desc "Delete generated html"
task :clear => 'styles:clear' do
puts "*** Clearing the views ***"
system "rm -fv site/*html"
system "rm -fv site/it/*html"
end
desc "Clears and generates new styles, builds and deploys"
task :deploy => :build do
puts "*** Deploying the site ***"
system("rsync -avz --delete site/ #{ssh_user}:#{remote_root}")
end
namespace :styles do
desc "Clears the styles"
task :clear do
puts "*** Clearing styles ***"
system "rm -Rfv site/stylesheets/*"
end
desc "Generates new styles"
task :generate => :clear do
puts "*** Generating styles ***"
system "compass"
end
end