apache-config-generator/Rakefile

37 lines
742 B
Ruby
Raw Normal View History

2010-04-27 20:11:47 +00:00
$LOAD_PATH << 'lib'
require 'apache'
2010-05-04 15:48:59 +00:00
require 'spec/rake/spectask'
2010-05-10 19:57:34 +00:00
require 'sdoc'
require 'sdoc_helpers/markdown'
require 'echoe'
require 'pp'
pp RDoc::TopLevel
2010-04-27 20:11:47 +00:00
namespace :apache do
desc "Generate the configs"
task :generate, :path do |t, args|
Dir[File.join(args[:path], '**', '*.rb')].each do |file|
require file
end
end
end
2010-05-04 15:48:59 +00:00
namespace :spec do
desc "Run RCov tests"
Spec::Rake::SpecTask.new('rcov') do |t|
t.spec_files = FileList['spec/*.rb']
t.rcov = true
2010-05-04 21:04:44 +00:00
t.rcov_opts = ['--exclude', 'spec', '--exclude', 'gems']
t.spec_opts = ['-b']
2010-05-04 15:48:59 +00:00
end
end
2010-05-10 19:57:34 +00:00
Rake::RDocTask.new do |rdoc|
rdoc.template = 'direct'
rdoc.rdoc_files.add('lib')
rdoc.main = "lib/apache/config.rb"
rdoc.rdoc_dir = 'docs'
end