method
validate_shebang_line_in
ruby latest stable - Class:
Gem::SpecificationPolicy
validate_shebang_line_in(executable)private
No documentation available.
# File lib/rubygems/specification_policy.rb, line 385
def validate_shebang_line_in(executable)
executable_path = File.join(bindir, executable)
return if File.read(executable_path, 2) == '#!'
warning "#{executable_path} is missing #! line"
end