2006-08-16 16:56:04 -04:00
|
|
|
|
2007-09-22 21:48:47 -04:00
|
|
|
require 'echoe'
|
2006-08-16 16:56:04 -04:00
|
|
|
|
2007-09-22 21:48:47 -04:00
|
|
|
Echoe.new("mongrel_cluster") do |p|
|
|
|
|
p.summary = "Mongrel plugin that provides commands and Capistrano tasks for managing multiple Mongrel processes."
|
2007-09-22 21:53:41 -04:00
|
|
|
p.project = "mongrel"
|
2007-09-22 21:48:47 -04:00
|
|
|
p.author="Bradley Taylor"
|
2007-10-10 12:28:29 -04:00
|
|
|
p.dependencies = ['gem_plugin >=0.2.3', 'mongrel >=1.0.2']
|
2007-09-22 21:48:47 -04:00
|
|
|
p.has_rdoc = false
|
2006-08-16 16:56:04 -04:00
|
|
|
|
2007-09-22 21:48:47 -04:00
|
|
|
p.need_tar_gz = false
|
|
|
|
p.need_tgz = true
|
|
|
|
p.require_signed = true
|
2007-10-10 12:28:29 -04:00
|
|
|
p.certificate_chain = ['~/p/configuration/gem_certificates/mongrel/mongrel-public_cert.pem',
|
|
|
|
'~/p/configuration/gem_certificates/evan_weaver-mongrel-public_cert.pem']
|
2006-08-16 16:56:04 -04:00
|
|
|
end
|
|
|
|
|
2007-09-22 21:48:47 -04:00
|
|
|
# Is this still used?
|
2006-08-16 16:56:04 -04:00
|
|
|
task :gem_source do
|
|
|
|
mkdir_p "pkg/gems"
|
|
|
|
|
|
|
|
FileList["**/*.gem"].each { |gem| mv gem, "pkg/gems" }
|
|
|
|
FileList["pkg/*.tgz"].each {|tgz| rm tgz }
|
|
|
|
rm_rf "pkg/#{name}-#{version}"
|
|
|
|
|
|
|
|
sh %{ generate_yaml_index.rb -d pkg }
|
2007-07-10 15:42:59 -04:00
|
|
|
sh %{ scp -r pkg/* #{ENV['SSH_USER']}@rubyforge.org:/var/www/gforge-projects/mongrel/releases/ }
|
2006-08-16 16:56:04 -04:00
|
|
|
end
|
|
|
|
|