Sha256: ccbfb50bafa80fea37c9a96d355004cee449770b97dc5c556f289ede4b6122cd
Contents?: true
Size: 1.39 KB
Versions: 2
Compression:
Stored size: 1.39 KB
Contents
module Invoker module Power module Distro class Base RESOLVER_FILE = "/etc/dnsmasq.d/dev-tld" RINETD_FILE = "/etc/rinetd.conf" def self.distro_installer case Facter[:operatingsystem].value when "Ubuntu" require "invoker/power/setup/distro/ubuntu" Ubuntu.new when "Fedora" require "invoker/power/setup/distro/redhat" Redhat.new when "Archlinux" require "invoker/power/setup/distro/arch" Arch.new when "Debian" require "invoker/power/setup/distro/debian" Debian.new when "LinuxMint" require "invoker/power/setup/distro/mint" Mint.new else raise "Your selected distro is not supported by Invoker" end end def resolver_file RESOLVER_FILE end def rinetd_file RINETD_FILE end # Install required software def install_required_software raise "Unimplemented" end def restart_services if Facter[:systemctl] == "true" system("systemctl restart rinetd") system("systemctl restart dnsmasq") else system("service rinetd restart") system("service dnsmasq restart") end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
invoker-1.4.1 | lib/invoker/power/setup/distro/base.rb |
invoker-1.4.0 | lib/invoker/power/setup/distro/base.rb |