Class: Getch::Gentoo::Tarball

Inherits:
Object
  • Object
show all
Defined in:
lib/getch/gentoo/tarball.rb

Overview

Download the last archive rootfs

Instance Method Summary collapse

Constructor Details

#initializeTarball

Returns a new instance of Tarball.



10
11
12
13
14
15
16
17
18
19
# File 'lib/getch/gentoo/tarball.rb', line 10

def initialize
  @log = Log.new
  @mirror = 'https://mirror.rackspace.com/gentoo'
  @release = release
  @stage_file = if OPTIONS[:musl]
                  "stage3-amd64-musl-#{@release}.tar.xz"
                else
                  "stage3-amd64-systemd-#{@release}.tar.xz"
                end
end

Instance Method Details

#xObject



21
22
23
24
25
26
# File 'lib/getch/gentoo/tarball.rb', line 21

def x
  get_stage3
  control_files
  checksum
  install
end