Sha256: 58e360eb48d3d6c2f72d370a2ff395d30100d304a190b880dbac87c64d59f72f

Contents?: true

Size: 631 Bytes

Versions: 5

Compression:

Stored size: 631 Bytes

Contents

module Invoker
  module Power
    module Distro
      class Arch < Base
        def install_required_software
          system("pacman -S --needed --noconfirm dnsmasq")
          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
          unless system("ls /usr/bin/rinetd > /dev/null 2>&1")
            fail "You'll need to install rinetd from the AUR in order to continue"
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
invoker-1.4.1 lib/invoker/power/setup/distro/arch.rb
invoker-1.4.0 lib/invoker/power/setup/distro/arch.rb
invoker-1.3.2 lib/invoker/power/setup/distro/arch.rb
invoker-1.3.1 lib/invoker/power/setup/distro/arch.rb
invoker-1.3.0 lib/invoker/power/setup/distro/arch.rb