class Getch::Config::Main
Public Class Methods
new()
click to toggle source
# File lib/getch/config.rb, line 12 def initialize os = OPTIONS[:os].to_sym @load = CONFIG_LOAD[os].new end
Public Instance Methods
dns()
click to toggle source
# File lib/getch/config.rb, line 21 def dns @load.dns end
ethernet()
click to toggle source
# File lib/getch/config.rb, line 17 def ethernet @load.ethernet end
shell()
click to toggle source
# File lib/getch/config.rb, line 37 def shell @load.shell end
sysctl()
click to toggle source
# File lib/getch/config.rb, line 29 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
wifi()
click to toggle source
# File lib/getch/config.rb, line 25 def wifi @load.wifi end