87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# File 'lib/bundler/rubygems_gem_installer.rb', line 87
def generate_bin_script(filename, bindir)
bin_script_path = File.join bindir, formatted_program_filename(filename)
Gem.open_file_with_lock(bin_script_path) do
require "fileutils"
FileUtils.rm_f bin_script_path
File.open(bin_script_path, "wb", 0o755) do |file|
file.write app_script_text(filename)
file.chmod(options[:prog_mode] || 0o755)
end
end
verbose bin_script_path
generate_windows_script filename, bindir
end
|