DEL tout ce qui concerne la gestion du CAPTCHA
[euphorik.git] / mise_en_prod.rb
1 #!/usr/bin/ruby
2
3 def copy_files(dest, opt)
4 p "rsync #{opt} index.html #{dest}"
5 `rsync #{opt} index.html #{dest}`
6 `rsync #{opt} -r css #{dest}`
7 `rsync #{opt} -r img #{dest}`
8 `rsync #{opt} -r js #{dest}`
9 `rsync #{opt} -r lightbox #{dest}`
10 `rsync #{opt} -r modules/include #{dest}/modules`
11 `rsync #{opt} -r modules/ebin #{dest}/modules`
12 `rsync #{opt} -r pages #{dest}`
13 end
14
15 if __FILE__ == $0
16 # la destination
17 $dest = 'gburri@euphorik.ch:/var/www/euphorik'
18 $dest = $*[0] if $*.length > 1
19
20 # les options communes
21 $opt = ''
22
23 copy_files($dest, $opt)
24 end