-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
42 lines (26 loc) · 919 Bytes
/
README
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
task :move do
files '.jpg', '.png', '.bmp', having: 'vacations'
files '.avi', existing: '.sub'
from 'home/fotos', 'home/donwloads'
from 'home/descktop'
to 'home/usr/bazoora'
end
task :copy do
files '.jpg', '.png', '.bmp', having: 'vacations'
folders '2011'
from 'home/fotos', 'home/donwloads' do
rename /vacations/, /2011-vac-/
end
from 'home/descktop'
to 'home/usr/bazoora'
end
task :move, :recursive => :tree do
# options for: :recursive =>
# :tree : copy or move recursively recreating the same tree structure in the target directory
# :plain : copy or move recursively to the target directory
files '.jpg', '.png', '.bmp', having: 'vacations'
files '.avi', existing_the: '.sub' # :existing_the look if the .sub (in this case) have the same name that .avi (in this case)
from 'home/fotos', 'home/donwloads'
from 'home/descktop'
to 'home/usr/bazoora'
end