End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Installer#generate_bin_script
generate_bin_script(filename, bindir)
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/installer.rb, line 533
def generate_bin_script(filename, bindir)
bin_script_path = File.join bindir, formatted_program_filename(filename)
require 'fileutils'
FileUtils.rm_f bin_script_path # prior install may have been --no-wrappers
File.open bin_script_path, 'wb', 0755 do |file|
file.print app_script_text(filename)
file.chmod(options[:prog_mode] || 0755)
end
verbose bin_script_path
generate_windows_script filename, bindir
end
Creates the scripts to run the applications in the gem.
See also
#gem_dir
#generate_bin_symlink
#gemdeps_load
#generate_windows_script
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1