Sha256: a689968e630fc742318744329fb7cffac17a179cd07c59fbefabccc8462f0034
Contents?: true
Size: 950 Bytes
Versions: 2
Compression:
Stored size: 950 Bytes
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 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 system("service rinetd restart") system("service dnsmasq restart") end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
invoker-1.2.0 | lib/invoker/power/setup/distro/base.rb |
invoker-1.2.0.pre2 | lib/invoker/power/setup/distro/base.rb |