-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
55 lines (41 loc) · 1.27 KB
/
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
46
47
48
49
50
51
52
53
54
55
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
## === Project properties =======================================================
Project = {
'name' => 'prometheus-sumo',
'version' => IO.readlines("VERSION")[0],
'author' => 'Lars Baehren',
'basedir' => Dir.pwd
}
## === Display properties of this project =======================================
namespace :project do
desc "Print name of the project"
task :name do
puts Project['name']
end
desc "Print version number of the project"
task :version do
puts Project['version']
end
desc "Print author of the project"
task :author do
puts Project['author']
end
end
desc "Summary of project properties"
task :project do
puts " Project summary:"
puts " .. Name = #{Project['name']}"
puts " .. Version = #{Project['version']}"
puts " .. Author = #{Project['author']}"
puts " .. Base dir = #{Project['basedir']}"
end
## === Generation of documentation ==============================================
Rake::RDocTask.new do |rd|
rd.main = "README"
rd.rdoc_files.include("README", "documentation/*.rdoc")
rd.rdoc_dir = "build/documentation/html"
end
## === Default target ===========================================================
task :default => ['project']