class Build
- Build
- Admiral::Command
- Reference
- Object
Defined in:
build.crConstant Summary
-
HELP =
{"description" => ""}
Class Method Summary
Instance Method Summary
- #__rescue_from___Admiral__Error(e)
-
#add_autoinstall
Add autoinstall parameter
-
#apply_all_in_one
apply all in one
-
#arguments
Returns the commands
Arguments
object. -
#check_req(name)
Check if a requirement exists in the current filesystem
- #destination_iso : String?
- #destination_iso=(destination_iso : Nil | String)
- #download_iso
-
#extract_iso_image
Extract source iso image to temp directory
-
#flags
Returns the commands
Flags
object. -
#help
Build will create a new iso image based on given values
-
#identify_iso
Identify iso based on whether source flag is defined
-
#repackage
repackage iso and write to destination
-
#run
Entry point to build subcommand
- #source_path : String?
- #source_path=(source_path : Nil | String)
-
#sub(command, *args, **params)
Invokes a sub command by name, passing
self
as the parent. - #tempdir : TempDir?
- #tempdir=(tempdir : Nil | TempDir)
-
#validate_iso(iso_file : String | Nil) : Bool
Validate a string to ensure it is a valid path and iso format
-
#validate_requirements
Check list of requirements
Class Method Detail
Instance Method Detail
Returns the commands Arguments
object.
You can access names arguments by name.
You can also access the remaning arguments using .arguments[index]
.
Returns the commands Flags
object.
You can access names flags by name.
Identify iso based on whether source flag is defined
if undefined, the latest ubuntu server 20.04 iso will be downloaded otherwise file will be used from filesystem
Invokes a sub command by name, passing self
as the parent.
Validate a string to ensure it is a valid path and iso format
Returns whether source matches unix path directory and ends with .iso
Check list of requirements
Alerts user to install any uninstalled requirements and exits program if any are found