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

Implemented a pre-release gem source so people can do gem install mongrel --source=http://mongrel.rubyforge.org/releases and track current bleeding edge development.

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@108 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
zedshaw 2006-03-12 19:40:35 +00:00
parent f27bc38135
commit 8f915bf2e6
2 changed files with 20 additions and 2 deletions

View file

@ -87,3 +87,19 @@ task :uninstall => [:clean] do
sh %{sudo gem uninstall mongrel} sh %{sudo gem uninstall mongrel}
sub_project("gem_plugin", :uninstall) sub_project("gem_plugin", :uninstall)
end end
task :gem_source => [:clean, :package] do
sub_project "gem_plugin", :clean, :test, :package
sub_project "mongrel_config", :clean, :test, :package
sub_project "mongrel_status", :clean, :test, :package
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 }
sh %{ scp -r pkg/* #{ENV['SSH_USER']}@rubyforge.org:/var/www/gforge-projects/mongrel/releases/ }
end

View file

@ -104,6 +104,8 @@ def setup_win32_gem(pkg_name, pkg_version)
Gem::Builder.new(spec).build Gem::Builder.new(spec).build
end end
def sub_project(project, target="") def sub_project(project, *targets)
sh %{cd projects/#{project}; rake #{target.to_s}; } targets.each do |target|
sh %{cd projects/#{project}; rake #{target.to_s}; }
end
end end