Class: Getch::Void::Tarball

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

Overview

Download the last tarball of void

Instance Method Summary collapse

Constructor Details

#initializeTarball

Returns a new instance of Tarball.



9
10
11
12
13
14
15
# File 'lib/getch/void/tarball.rb', line 9

def initialize
  @log = Log.new
  @url = 'https://repo-default.voidlinux.org/live/current'
  @file = 'sha256sum.txt'
  @xbps = false
  Dir.chdir OPTIONS[:mountpoint]
end

Instance Method Details

#xObject



17
18
19
20
21
22
# File 'lib/getch/void/tarball.rb', line 17

def x
  @xbps = search_archive
  download
  checksum
  install
end