Class: Getch::Config::Keymap

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

Overview

Search and configure the keymap (man loadkeys)

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

#initializeKeymap

Returns a new instance of Keymap.



11
12
13
14
15
16
17
18
19
# File 'lib/getch/config/keymap.rb', line 11

def initialize
  @log = Log.new
  @rc_conf = "#{OPTIONS[:mountpoint]}/etc/rc.conf"
  @vconsole_conf = "#{OPTIONS[:mountpoint]}/etc/vconsole.conf"
  @conf_d = "#{OPTIONS[:mountpoint]}/etc/conf.d/keymaps"
  @keymaps_dir = nil
  @keymap = nil
  x
end