-
Notifications
You must be signed in to change notification settings - Fork 5
/
Rakefile
45 lines (36 loc) · 984 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
41
42
43
44
45
# Author:: Sebastien Badia (<[email protected]>)
# Date:: Tue Jul 05 15:00:46 +0200 2011
require 'rubygems'
SITE = "nancy"
version = "0.1.4"
desc "Upload to #{SITE}"
task :up do
sh "ssh #{SITE}.user 'rm -rf gdeploy'"
sh "scp -r ~/dev/edge/gdeploy/ #{SITE}.user:"
end
desc "Download from #{SITE}"
task :down do
sh "scp -r #{SITE}.user:gdeloy/ /tmp"
end
desc "New release (tag and push)"
task :release do
sh "git tag #{version} -m \"New release : #{version}\""
sh "git push --tag"
end
desc "Clean conf files"
task :clean do
sh "rm -f ./conf/exports ~/public/config-glite-42.tgz"
sh "rm -f ./g5k.yaml ./nodes"
sh "rm -rf ./conf/{grid5000,orsay,lille,nancy,lyon,grenoble,sophia,bordeaux,rennes,toulouse,luxembourg,reims}"
end
desc "Gen confs"
task :conf do
sh "cat $OAR_NODE_FILE |uniq > nodes"
sh "ruby list2yaml.rb -g nodes > g5k.yaml"
sh "ruby config-glite.rb g5k.yaml"
end
desc "List rake"
task :list do
sh "rake -T"
end
task :default => :list