aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/gem_builder.rb
blob: 629726a5c6819ec6ad1092c77985ebc62e247618 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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