Class: Getch::Config::Portage

Inherits:
Object
  • Object
show all
Includes:
NiTo
Defined in:
lib/getch/config/portage.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

#initializePortage

Returns a new instance of Portage.



9
10
11
12
13
14
# File 'lib/getch/config/portage.rb', line 9

def initialize
  @log = Log.new
  @dest = "#{OPTIONS[:mountpoint]}/etc/portage"
  @usr_s = "#{OPTIONS[:mountpoint]}/usr/share/portage"
  x
end

Instance Method Details

#xObject



16
17
18
19
20
21
22
23
24
# File 'lib/getch/config/portage.rb', line 16

def x
  @log.info "Configuring Portage...\n"
  portage_dir
  gentoo_repo
  cpu_conf
  make_conf
  https_mirror
  license
end