module Dory::Resolv::LinuxResolvconf
Public Class Methods
clean()
click to toggle source
# File lib/dory/resolv/linux_resolvconf.rb, line 21 def self.clean puts 'Requesting sudo to run resolvconf'.green Bash.run_command("sudo resolvconf -d lo.dory") end
configure()
click to toggle source
# File lib/dory/resolv/linux_resolvconf.rb, line 16 def self.configure puts 'Requesting sudo to run resolvconf'.green Bash.run_command("echo -e '#{self.nameserver_contents}' | sudo resolvconf -a lo.dory") end
file_nameserver_line()
click to toggle source
# File lib/dory/resolv/linux_resolvconf.rb, line 4 def self.file_nameserver_line Linux.file_nameserver_line end
has_our_nameserver?()
click to toggle source
# File lib/dory/resolv/linux_resolvconf.rb, line 12 def self.has_our_nameserver? Linux.has_our_nameserver? end
nameserver_contents()
click to toggle source
# File lib/dory/resolv/linux_resolvconf.rb, line 8 def self.nameserver_contents Linux.nameserver_contents end