Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Commands::SetupCommand#install_file
install_file(file, dest_dir)
lib/rubygems/commands/setup_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/commands/setup_command.rb, line 630
def install_file(file, dest_dir)
dest_file = File.join dest_dir, file
dest_dir = File.dirname dest_file
unless File.directory? dest_dir
mkdir_p dest_dir, mode: 0o755
end
install file, dest_file, mode: options[:data_mode] || 0o644
end
No documentation available
See also
#install_executables
#install_file_list
#install_default_bundler_gem
#install_lib
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0