Sha256: f6927e5611780720e29f4fd9ca97af71462ed40662c555383e1544c21f84fb4f

Contents?: true

Size: 477 Bytes

Versions: 10

Compression:

Stored size: 477 Bytes

Contents

module Invoker
  module Power
    module Distro
      class Arch < Base
        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
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
itrg-invoker-1.6.1 lib/invoker/power/setup/distro/arch.rb
itrg-invoker-1.6.0 lib/invoker/power/setup/distro/arch.rb
invoker-1.5.8 lib/invoker/power/setup/distro/arch.rb
invoker-1.5.7 lib/invoker/power/setup/distro/arch.rb
invoker-1.5.6 lib/invoker/power/setup/distro/arch.rb
invoker-1.5.5 lib/invoker/power/setup/distro/arch.rb
invoker-1.5.4 lib/invoker/power/setup/distro/arch.rb
invoker-1.5.3 lib/invoker/power/setup/distro/arch.rb
meepo-1.5.2 lib/invoker/power/setup/distro/arch.rb
invoker-1.5.1 lib/invoker/power/setup/distro/arch.rb