windows_stub_script(bindir, bin_file_name)
public
return the stub script text used to launch the true Ruby script
# File lib/rubygems/installer.rb, line 658
def windows_stub_script(bindir, bin_file_name)
ruby = File.basename(Gem.ruby).chomp('"')
return @ECHO OFFIF NOT "%~f0" == "~f0" GOTO :WinNT@"#{ruby}" "#{File.join(bindir, bin_file_name)}" %1 %2 %3 %4 %5 %6 %7 %8 %9GOTO :EOF:WinNT@"#{ruby}" "%~dpn0" %*
end