End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Installer#generate_windows_script
generate_windows_script(filename, bindir)
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/installer.rb, line 473
def generate_windows_script(filename, bindir)
if Gem.win_platform?
script_name = formatted_program_filename(filename) + ".bat"
script_path = File.join bindir, File.basename(script_name)
File.open script_path, "w" do |file|
file.puts windows_stub_script(bindir, filename)
end
verbose script_path
end
end
Creates windows .bat files for easy running of commands
See also
#generate_bin_symlink
#install
#generate_bin_script
#installation_satisfies_dependency?
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0