Class: Getch::Config::TimeZone

Inherits:
Object
  • Object
show all
Includes:
NiTo
Defined in:
lib/getch/config/timezone.rb

Instance Method Summary collapse

Methods included from NiTo

cp, echo, echo_a, grep?, mkdir, mount, mount?, mv, rm, search_proc_swaps, sed, sh, swapoff, swapoff_dm, touch, umount

Constructor Details

#initializeTimeZone

Returns a new instance of TimeZone.



10
11
12
13
14
15
16
17
# File 'lib/getch/config/timezone.rb', line 10

def initialize
  @log = Log.new
  @etc_timezone = "#{OPTIONS[:mountpoint]}/etc/timezone"
  @rc_conf = "#{OPTIONS[:mountpoint]}/etc/rc.conf"
  @openrc = "#{OPTIONS[:mountpoint]}/etc/conf.d/keymaps"
  @timezone = OPTIONS[:timezone]
  x
end