Method: Async::DNS::System.hosts_path

Defined in:
lib/async/dns/system.rb

.hosts_pathObject

Get the path to the hosts file.



21
22
23
24
25
26
27
# File 'lib/async/dns/system.rb', line 21

def self.hosts_path
  if RUBY_PLATFORM =~ /mswin32|mingw|bccwin/
    Win32::Resolv.get_hosts_path
  else
    HOSTS
  end
end