Sha256: a657400aa2407c3f755f9f25d5c81b07d5606dc6df9f2fbc23efd6295d31ba6a

Contents?: true

Size: 922 Bytes

Versions: 1

Compression:

Stored size: 922 Bytes

Contents

require 'open-uri'
require 'open3'
require_relative 'gentoo/stage'
require_relative 'gentoo/config'
require_relative 'gentoo/chroot'

module Getch
  module Gentoo
    class << self
      def new
        @state = Getch::States.new()
      end

      def stage3
        return if STATES[:gentoo_base]
        new
        stage = Getch::Gentoo::Stage.new()
        stage.get_stage3
        stage.control_files
        stage.checksum
        @state.stage3
      end

      def config(options)
        return if STATES[:gentoo_config]
        new
        config = Getch::Gentoo::Config.new()
        config.portage
        config.portage_fs
        config.repo
        config.network
        config.systemd(options)
        @state.config
      end

      def chroot
        chroot = Getch::Gentoo::Chroot.new()
        chroot.update
        chroot.world
        chroot.systemd
        chroot.kernel
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
getch-0.0.3 lib/getch/gentoo.rb