class Bundler::Installer

def generate_bundler_executable_stubs(spec)

def generate_bundler_executable_stubs(spec)
  bin_path = Bundler.bin_path
  template = File.read(File.expand_path('../templates/Executable', __FILE__))
  relative_gemfile_path = Bundler.default_gemfile.relative_path_from(bin_path)
  ruby_command = Thor::Util.ruby_command
  spec.executables.each do |executable|
    next if executable == "bundle"
    File.open "#{bin_path}/#{executable}", 'w', 0755 do |f|
      f.puts ERB.new(template, nil, '-').result(binding)
    end
  end
end