1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/projects/mongrel_service/Rakefile
luislavena 585cfea9cc Fix for missing '-a' (address binding) parameter when registering new services.
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@347 19e92222-5c0b-0410-8929-a290d50e31e9
2006-09-18 20:27:35 +00:00

44 lines
1.1 KiB
Ruby

require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'tools/rakehelp'
require 'fileutils'
include FileUtils
setup_tests
setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config"]
setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
desc "Does a full compile, test run"
task :default => [:test, :package]
version="0.2.1"
name="mongrel_service"
setup_gem(name, version) do |spec|
spec.summary = "Mongrel Native Win32 Service Plugin for Rails"
spec.description = "This plugin offer native win32 services for rails, powered by Mongrel."
spec.author="Luis Lavena"
# added mongrel_service executable
spec.executables = ["mongrel_service"]
spec.add_dependency('gem_plugin', '>= 0.2.1')
spec.add_dependency('mongrel', '>= 0.3.12.4')
spec.add_dependency('win32-service', '>= 0.5.0')
spec.files += Dir.glob("resources/**/*")
end
task :install => [:test, :package] do
sh %{gem install pkg/#{name}-#{version}.gem}
end
task :uninstall => [:clean] do
sh %{gem uninstall #{name}}
end