apache-config-generator/Rakefile

42 lines
1009 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'
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
2010-05-10 20:03:35 +00:00
Echoe.new('apache-config-generator') do |p|
p.author = "John Bintz"
p.summary = "A Ruby DSL for programmatically generating Apache configs"
p.ignore_pattern = [ 'spec/**/*', 'test/**/*', 'docs/**/*' ]
p.executable_pattern = [ 'bin/**/*' ]
2010-05-11 19:19:16 +00:00
p.runtime_dependencies = [ 'rainbow' ]
2010-05-10 20:03:35 +00:00
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'
2010-05-11 19:19:16 +00:00
rdoc.rdoc_files.add('lib', 'README.rdoc')
rdoc.main = 'README.rdoc'
2010-05-10 19:57:34 +00:00
rdoc.rdoc_dir = 'docs'
end