[go: up one dir, main page]

File: Rakefile

package info (click to toggle)
facter 1.3.5-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 148 kB
  • ctags: 54
  • sloc: ruby: 1,139; makefile: 41
file content (46 lines) | stat: -rw-r--r-- 1,153 bytes parent folder | download
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
# Rakefile for facter

begin 
    require 'rake/reductive'
rescue LoadError
    $stderr.puts "You must have the Reductive build library in your RUBYLIB."
    exit(14)
end

project = Rake::RedLabProject.new("facter") do |p|
    p.summary = "Facter collects Operating system facts."
    p.description = <<-EOF
      Facter is a module for collecting simple facts about a host 
      Operating system.
    EOF

    p.filelist = [
        'install.rb',
        '[A-Z]*',
        'bin/**/*', 
        'lib/**/*.rb', 
        'test/**/*.rb',
        'doc/**/*',
        'etc/*'
    ]

    p.epmhosts = %w{culain}
    p.rpmhost = "fedora1"
    p.sunpkghost = "sol10b"
end

project.mkgemtask do |gem|
    gem.require_path = 'lib'                         # Use these for libraries.

    gem.bindir = "bin"                               # Use these for applications.
    gem.executables = ["facter"]
    gem.default_executable = "facter"
end

if project.has?(:epm)
    project.mkepmtask do |task|
        task.bins = FileList.new("bin/facter")
        task.rubylibs = FileList.new('lib/**/*')          
    end
end
# $Id: Rakefile 156 2006-07-02 19:19:26Z luke $