module Tarball
Overview
require "tarball"
# Extracts all files in "archive.tar" to under the "data" directory.
Tarball.extract_all("archive.tar", "data")
Defined in:
tarball.crConstant Summary
-
BLOCK_SIZE =
512
-
VERSION =
"0.1.4"
Class Method Summary
-
.extract_all(archive_file : String, dir = ".")
Extracts all file system objects in the tar archive file.
-
.open(archive_file : String)
Opens tar archive file.
-
.open(archive_file : String, &block)
Opens tar archive file and yields given block.
-
.open_gz(archive_file : String)
Opens gzipped tar archive file.
-
.open_gz(archive_file : String, &block)
Opens gzipped tar archive file and yields given block.
Class Method Detail
def self.extract_all(archive_file : String, dir = ".")
#
Extracts all file system objects in the tar archive file.
def self.open_gz(archive_file : String, &block)
#
Opens gzipped tar archive file and yields given block.