Sha256: 9177975a82cc26716f1b39eea5981ca1e215f236efe43e13ad66ce5f6ac89726
Contents?: true
Size: 564 Bytes
Versions: 4
Compression:
Stored size: 564 Bytes
Contents
module Landrush module Cap module Suse module RestartDnsmasq class << self SED_COMMAND = <<-EOF.gsub(/^ +/, '') sudo sed -i.orig '1 i\ # Added by landrush, a vagrant plugin \\ nameserver 127.0.0.1 \\ ' /etc/resolv.conf EOF def restart_dnsmasq(_env) system(SED_COMMAND) unless system("cat /etc/resolv.conf | grep 'nameserver 127.0.0.1' > /dev/null 2>&1") system('sudo systemctl restart dnsmasq') end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems