diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/commands/setup_command.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index 69861f978a..dc7a73f63a 100644 --- a/lib/rubygems/commands/setup_command.rb +++ b/lib/rubygems/commands/setup_command.rb @@ -312,16 +312,6 @@ By default, this RubyGems will install gem as: end end - 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 => 0755 - end - - install file, dest_file, :mode => options[:data_mode] || 0644 - end - def install_lib(lib_dir) libs = { 'RubyGems' => 'lib' } libs['Bundler'] = 'bundler/lib' @@ -644,6 +634,16 @@ abort "#{deprecation_message}" private + 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 => 0755 + end + + install file, dest_file, :mode => options[:data_mode] || 0644 + end + def target_bin_path(bin_dir, bin_file) bin_file_formatted = if options[:format_executable] Gem.default_exec_format % bin_file |