1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Moved the win32 service files so that they can be used directly as commands. Modified the win32 gems to require win32-service. Created a gem for win32-service.

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@56 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
zedshaw 2006-02-22 17:10:19 +00:00
parent 985bb4dd71
commit c9dd16ed84
3 changed files with 8 additions and 6 deletions

View file

@ -37,15 +37,17 @@ author="Zed A. Shaw"
name="mongrel"
scripts=['mongrel_rails']
setup_gem(name, version, author, summary, ['mongrel_rails'], test_file) do |spec|
setup_gem(name, version, author, summary, scripts, test_file) do |spec|
spec.add_dependency('daemons', '>= 0.4.2')
end
desc "Build a binary gem for Win32"
task :win32_gem => [:clean, :compile, :test, :package_win32]
task :win32_gem => [:clean, :compile, :test, :rerdoc, :package_win32]
scripts_win32 = scripts + ['mongrel_rails_service','mongrel_rails_svc']
task :package_win32 do
setup_win32_gem(name, version, version, summary, scripts, test_file) do |spec|
setup_win32_gem(name, version, version, summary, scripts_win32, test_file) do |spec|
spec.add_dependency('win32-service', '>= 0.5.0')
spec.files << 'ext/http11/http11.so'
spec.extensions = []
spec.platform = Gem::Platform::WIN32

View file

@ -1,5 +1,5 @@
###############################################
# mongrel_rails_service.rb
# mongrel_rails_service
#
# Control script for Rails powered by Mongrel
#
@ -123,7 +123,7 @@ class InstallCommand < Mongrel::Command::Command
binary_path << '"' << Config::CONFIG['bindir'] << '/ruby.exe' << '" '
# add service_script
service_script = File.expand_path(File.dirname(__FILE__) + '/mongrel_rails_svc.rb')
service_script = File.expand_path(File.dirname(__FILE__) + '/mongrel_rails_svc')
binary_path << '"' << service_script << '" '
# now add the parameters to it.

View file

@ -1,5 +1,5 @@
###############################################
# mongrel_rails_svc.rb
# mongrel_rails_svc
#
# This is where Win32::Daemon resides.
###############################################