module Repackage
#¶ ↑
require ‘repackage/class/constants.rb’
#¶ ↑
#¶ ↑
require ‘repackage/class/misc.rb’
#¶ ↑
#¶ ↑
Repackage::Repackage
¶ ↑
The primary purpose of this class is to repackage a .tar.gz archive into a .tar.bz2 file or into another format.
Thus, the ideal input to this class are files such as “foobar-1.2.3.tar.gz” or something similar to this. These will be stored as an Array internally, to allow batch-processing from the get go.
The default target format is to .tar.xz or more accurately, to whatever the value is that has been specified via the constant DEFAULT_TARGET_FORMAT_TYPE.
Historically this class was first created at the end of August 2005, so it used to be a fairly “old” class. Obviously its use case was necessary even a long time ago as-is.
Over the years the class has been extended to allow for more flexibility. In June 2021 it was re-written from scratch, primarily to make use of @internal_hash rather than a multitude of different instance variables; this coincided with making this functionality available via sinatra as well, thus allowing web-related use.
In May 2022 the main class has again been rewritten. It was made more logical, made most of its external gems optional (including colour support) and more extensively documented - at the least compared to the pre-2022 state.
Usage example:
Repackage::Repackage.new(ARGV) Repackage.new(ARGV) # or this shorter variant.
#¶ ↑
require ‘repackage/class/repackage.rb’
#¶ ↑
#¶ ↑
require ‘repackage/colours/colours.rb’
#¶ ↑
#¶ ↑
require ‘repackage/version/version.rb’
#¶ ↑
#¶ ↑
require ‘repackage/www/embeddable_interface.rb’
#¶ ↑
Constants
- LAST_UPDATE
#¶ ↑
LAST_UPDATE
¶ ↑#¶ ↑
- VERSION
#¶ ↑
VERSION
¶ ↑#¶ ↑