/
repos.rb
95 lines (86 loc) · 2.04 KB
/
repos.rb
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
mine = %w(
eventhand
sites
thehunge
geeksheets
two-shay
)
os = %w(
rhnh
db2s3
tufte-graph
enki
dotfiles
sheets
writing
sandbox
kamel
lesstile
curlophone-orchestra
project-hoff
rack-my-id
nom
ausnom
singing
jquery-enumerable
socialbeat
)
dep 'git repos cloned' do
requires(*(mine + os + [
'money',
'db-is-your-friend'
]))
end
dep 'money' do
met? { File.exists?(File.expand_path("~/Code/me/money/.git")) }
meet {
shell %Q{mkdir -p ~/Code/me}
shell %Q{git clone ssh://rhnh.net/~/repos/money ~/Code/me/money}
}
end
dep 'db-is-your-friend' do
requires(
'db-is-your-friend website',
'db-is-your-friend presentation',
'db-is-your-friend bookstore'
)
end
dep 'db-is-your-friend website' do
met? { File.exists?(File.expand_path("~/Code/me/db-is-your-friend/website/.git")) }
meet {
shell %Q{mkdir -p ~/Code/me}
shell %Q{git clone ssh://rhnh.net/~/repos/db-is-your-friend/website.git ~/Code/me/db-is-your-friend/website}
}
end
dep 'db-is-your-friend presentation' do
met? { File.exists?(File.expand_path("~/Code/me/db-is-your-friend/presentation/.git")) }
meet {
shell %Q{mkdir -p ~/Code/me}
shell %Q{git clone ssh://rhnh.net/~/repos/db-is-your-friend/presentation.git ~/Code/me/db-is-your-friend/presentation}
}
end
dep 'db-is-your-friend bookstore' do
met? { File.exists?(File.expand_path("~/Code/me/db-is-your-friend/bookstore/.git")) }
meet {
shell %Q{mkdir -p ~/Code/me}
shell %Q{git clone ssh://rhnh.net/~/repos/db-is-your-friend/bookstore.git ~/Code/me/db-is-your-friend/bookstore}
}
end
mine.each do |x|
dep x do
met? { File.exists?(File.expand_path("~/Code/me/#{x}/.git")) }
meet {
shell %Q{mkdir -p ~/Code/me}
shell %Q{git clone git@github.com:xaviershay/#{x}.git ~/Code/me/#{x}}
}
end
end
os.each do |x|
dep x do
met? { File.exists?(File.expand_path("~/Code/os/#{x}/.git")) }
meet {
shell %Q{mkdir -p ~/Code/os}
shell %Q{git clone git@github.com:xaviershay/#{x}.git ~/Code/os/#{x}}
}
end
end