Sha256: 30e9dcf320a79f9edb3e9985293106a2868c810cefde4d24510d6a47448d07f5
Contents?: true
Size: 740 Bytes
Versions: 1
Compression:
Stored size: 740 Bytes
Contents
require_relative 'config/gentoo' require_relative 'config/void' CONFIG_LOAD = { gentoo: Getch::Config::Gentoo, void: Getch::Config::Void }.freeze module Getch module Config class Main def initialize os = OPTIONS[:os].to_sym @load = CONFIG_LOAD[os].new end def ethernet @load.ethernet end def dns @load.dns end def wifi @load.wifi end def sysctl pwd = File.expand_path(File.dirname(__FILE__)) dest = "#{Getch::MOUNTPOINT}/etc/sysctl.d/" Helpers::mkdir dest Helpers::cp("#{pwd}/../../assets/network-stack.conf", dest) end def shell @load.shell end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
getch-0.1.6 | lib/getch/config.rb |