class Invoker::Power::Distro::Arch
Public Instance Methods
install_required_software()
click to toggle source
# File lib/invoker/power/setup/distro/arch.rb, line 5 def install_required_software system("pacman -S --needed --noconfirm dnsmasq socat") system("mkdir -p /etc/dnsmasq.d") unless File.open("/etc/dnsmasq.conf").each_line.any? { |line| line.chomp == "conf-dir=/etc/dnsmasq.d" } File.open("/etc/dnsmasq.conf", "a") {|f| f.write("conf-dir=/etc/dnsmasq.d") } end end