apache-config-generator/Rakefile
2011-01-05 08:20:40 -05:00

28 lines
522 B
Ruby

require 'rubygems'
require 'bundler'
Bundler.require(:default)
$LOAD_PATH << 'lib'
require 'yaml'
require 'apache/config'
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
task :reek do
system('reek -c config/config.reek lib/*')
end
task :gem do
system %{rm *.gem}
system %{gem build apache-config-generator.gemspec}
system %{gem install apache-config-generator-*.gem}
end