aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/gem_builder.rb
blob: 79c61cc034431a696191ba8d7334797ebe5f6a70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'rubygems'
require 'rubygems/installer'

module Rails
  
  # this class hijacks the functionality of Gem::Installer by overloading its 
  # initializer to only provide the information needed by 
  # Gem::Installer#build_extensions (which happens to be what we have)
  class GemBuilder < Gem::Installer

    def initialize(spec, gem_dir)
      @spec    = spec
      @gem_dir = gem_dir
    end

    # silence the underlying builder
    def say(message)
    end

  end
end