class Bundler::Repository

def generate_bins(bundle, options)

def generate_bins(bundle, options)
  bundle.each do |spec|
    next if options[:no_bundle].include?(spec.name)
    # HAX -- Generate the bin
    bin_dir = @bindir
    path    = @path
    installer = Gem::Installer.allocate
    installer.instance_eval do
      @spec     = spec
      @bin_dir  = bin_dir
      @gem_dir  = path.join("gems", "#{spec.full_name}")
      @gem_home = path
      @wrappers = true
      @format_executable = false
      @env_shebang = false
    end
    installer.generate_bin
  end
end