Permalink
Browse files

Load some of Rails, not all of it

  • Loading branch information...
1 parent 39777a4 commit 09a7fea43c24ed543f046f497edb38d7f69fc11f @qrush qrush committed Nov 10, 2009
Showing with 2 additions and 14 deletions.
  1. +2 −5 config.ru
  2. +0 −9 lib/gemcutter.rb
View
7 config.ru
@@ -1,9 +1,6 @@
if ENV['MAINTENANCE_MODE']
- require 'sinatra'
- require 'aws/s3'
- require 'app/metal/hostess'
- require 'lib/vault_object'
- require 'lib/gemcutter'
+ require "#{File.dirname(__FILE__)}/vendor/bundler_gems/environment"
+ require 'config/environment'
get '/' do
send_file("public/maintenance/index.html")
View
9 lib/gemcutter.rb
@@ -80,15 +80,6 @@ def inspect
"<Gemcutter #{attrs.join(' ')}>"
end
- def self.indexer
- @indexer ||=
- begin
- indexer = Gem::Indexer.new(Gemcutter.server_path, :build_legacy => false)
- def indexer.say(message) end
- indexer
- end
- end
-
def specs_index
Version.with_indexed(true).map(&:to_index)
end

0 comments on commit 09a7fea

Please sign in to comment.