method

util_make_exec

Importance_0
v1_9_3_125 - Show latest stable - 0 notes - Class: InstallerTestCase
util_make_exec(spec = @spec, shebang = "#!/usr/bin/ruby") public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/installer_test_case.rb, line 98
  def util_make_exec(spec = @spec, shebang = "#!/usr/bin/ruby")
    spec.executables = ]executable]
    spec.files << 'bin/executable'

    exec_path = spec.bin_file "executable"
    write_file exec_path do |io|
      io.puts shebang
    end

    bin_path = File.join @tempdir, "bin", "executable"
    write_file bin_path do |io|
      io.puts shebang
    end
  end
Register or log in to add new notes.