# File bundler/installer/standalone.rb, line 8
def generate
SharedHelpers.filesystem_access(bundler_path) do |p|
FileUtils.mkdir_p(p)
end
File.open File.join(bundler_path, "setup.rb"), "w" do |file|
file.puts "require 'rbconfig'"
file.puts reverse_rubygems_kernel_mixin
paths.each do |path|
if Pathname.new(path).absolute?
file.puts %Q($:.unshift "#{path}")
else
file.puts %Q($:.unshift File.expand_path("\#{__dir__}/#{path}"))
end
end
end
end