class Getch::Gentoo::Main

Public Class Methods

new() click to toggle source
# File lib/getch/gentoo.rb, line 12
def initialize
  @state = Getch::States.new()
end

Public Instance Methods

boot() click to toggle source
# File lib/getch/gentoo.rb, line 65
def boot
  boot = Getch::Gentoo::Boot.new
  boot.start
end
chroot() click to toggle source
# File lib/getch/gentoo.rb, line 38
def chroot
  chroot = Getch::Gentoo::Chroot.new
  chroot.update
  chroot.cpuflags
  chroot.systemd

  flags = Getch::Gentoo::UseFlag.new
  flags.apply

  chroot.world
  return if STATES[:gentoo_kernel]
  chroot.kernel
  chroot.kernel_deps
  chroot.install_pkgs
  chroot.kernel_link
end
config() click to toggle source
# File lib/getch/gentoo.rb, line 25
def config
  return if STATES[:gentoo_config]
  config = Getch::Gentoo::Config.new
  config.portage
  config.portage_fs
  config.portage_bashrc
  config.repo
  config.network
  config.systemd
  config.hostname
  @state.config
end
kernel() click to toggle source
# File lib/getch/gentoo.rb, line 55
def kernel
  return if STATES[:gentoo_kernel]
  source = Getch::Gentoo::Sources.new
  source.build_kspp
  source.build_others
  source.firewall
  source.make
  @state.kernel
end
stage3() click to toggle source
# File lib/getch/gentoo.rb, line 16
def stage3
  return if STATES[:gentoo_base]
  stage = Getch::Gentoo::Stage.new
  stage.get_stage3
  stage.control_files
  stage.checksum
  @state.stage3
end