3 def copy_files(dest
, opt
)
4 `rsync #{opt} index.html #{dest}`
5 `rsync #{opt} -r css #{dest}`
6 `rsync #{opt} -r img #{dest}`
7 #`rsync #{opt} -r js #{dest}`
8 `rsync #{opt} -r lightbox #{dest}`
9 `rsync #{opt} -r modules/include #{dest}/modules`
10 `rsync #{opt} -r modules/ebin #{dest}/modules`
11 `rsync #{opt} -r pages #{dest}`
13 # copie des js avec minification
19 $dest = 'gburri@euphorik.ch:/var/www/euphorik'
20 $dest = $
*[0] if $
*.length
> 1
22 # les options communes
25 copy_files($dest, $opt)