method
util_make_exec
v1_9_3_125 -
Show latest stable
- Class:
Gem::InstallerTestCase
util_make_exec(spec = @spec, shebang = "#!/usr/bin/ruby")public
No documentation available.
# 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