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:
parent
985bb4dd71
commit
c9dd16ed84
3 changed files with 8 additions and 6 deletions
8
Rakefile
8
Rakefile
|
@ -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
|
||||
|
|
|
@ -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.
|
|
@ -1,5 +1,5 @@
|
|||
###############################################
|
||||
# mongrel_rails_svc.rb
|
||||
# mongrel_rails_svc
|
||||
#
|
||||
# This is where Win32::Daemon resides.
|
||||
###############################################
|
Loading…
Reference in a new issue