class Landrush::Util::Dnsmasq
Public Class Methods
nm_managed?()
click to toggle source
# File lib/landrush/util/dnsmasq.rb, line 4 def self.nm_managed? nm_config = Pathname('/etc/NetworkManager/NetworkManager.conf') File.exist?(nm_config) && File.readlines(nm_config).grep(/^dns=dnsmasq$/).any? end