root/Rakefile

Revision d63b4e260b6b2f9fa8d67547c74f8164a3842e9c, 2.0 kB (checked in by Luke Kanies <luke@madstop.com>, 3 years ago)

adding docs

git-svn-id: https://reductivelabs.com/svn/naginator/trunk@32 a6514a99-27e0-0310-b50f-e00a1f381428

  • Property mode set to 100644
Line 
1 # Rakefile for Naginator
2
3 begin
4     require 'rake/reductive'
5 rescue LoadError
6     $stderr.puts "You must have the Reductive build library in your RUBYLIB."
7     exit(14)
8 end
9
10 dir = File.dirname(__FILE__)
11 $: << File.join(dir, "lib")
12
13 require 'nagios'
14
15 TESTHOSTS = %w{rh3a fedora1 centos1 freebsd1 culain}
16
17 project = Rake::RedLabProject.new("nagios", Nagios::NAGIOSVERSION) do |p|
18     p.summary = "Ruby libraries for Nagios, including a parser"
19     p.description = "Naginator is a set of support libraries for managing Nagios
20         from within Ruby.  It includes a parser, so it is easy to get information
21         into Nagios, and generators, so you can easily create new Nagios configuration
22         files."
23
24
25     p.filelist = [
26         'install.rb',
27         '[A-Z]*',
28         'lib/**/*.rb',
29         'test/**/*.rb',
30         'bin/**/*',
31         'ext/**/*',
32         'examples/**/*',
33         'etc/**/*'
34     ]
35 end
36
37 begin
38 if project.has?(:gem)
39     # Make our gem task.  This actually just fills out the spec.
40     project.mkgemtask do |task|
41
42         task.require_path = 'lib'                         # Use these for libraries.
43
44         task.bindir = "bin"                               # Use these for applications.
45         task.executables = %w{mkschema nagaccept nagcollect nagconfig nagkeys
46             nagsend}
47         task.default_executable = "nagcollect"
48         task.autorequire = 'nagios'
49
50         #### Documentation and testing.
51
52         task.has_rdoc = true
53         #s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
54         task.rdoc_options <<
55             '--title' <<  'Naginator - Automated Nagios Management' <<
56             '--main' << 'README' <<
57             '--line-numbers'
58         #task.test_file = "test/test"
59     end
60 end
61 rescue => detail
62 puts detail.backtrace
63 puts detail
64 exit
65 end
66
67 #if project.has?(:epm)
68 #    project.mkepmtask do |task|
69 #        task.bins = FileList.new("bin/puppet", "bin/puppetca")
70 #        task.sbins = FileList.new("bin/puppetmasterd", "bin/puppetd")
71 #        task.rubylibs = FileList.new('lib/**/*')
72 #    end
73 #end
74
75 # $Id$
Note: See TracBrowser for help on using the browser.