class Build

Defined in:

build.cr

Constant Summary

HELP = {"description" => ""}

Class Method Summary

Instance Method Summary

Class Method Detail

def self.description #

[View source]
def self.run(*args, **params) #

[View source]

Instance Method Detail

def __rescue_from___Admiral__Error(e) #

def add_autoinstall #

Add autoinstall parameter


[View source]
def apply_all_in_one #

apply all in one


[View source]
def arguments #
Description copied from class Admiral::Command

Returns the commands Arguments object.

You can access names arguments by name. You can also access the remaning arguments using .arguments[index].


[View source]
def check_req(name) #

Check if a requirement exists in the current filesystem


[View source]
def destination_iso : String? #

[View source]
def destination_iso=(destination_iso : Nil | String) #

[View source]
def download_iso #

[View source]
def extract_iso_image #

Extract source iso image to temp directory


[View source]
def flags #
Description copied from class Admiral::Command

Returns the commands Flags object.

You can access names flags by name.


[View source]
def help #

Build will create a new iso image based on given values


def identify_iso #

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


[View source]
def repackage #

repackage iso and write to destination


[View source]
def run #

Entry point to build subcommand


[View source]
def source_path : String? #

[View source]
def source_path=(source_path : Nil | String) #

[View source]
def sub(command, *args, **params) #
Description copied from class Admiral::Command

Invokes a sub command by name, passing self as the parent.


[View source]
def tempdir : TempDir? #

[View source]
def tempdir=(tempdir : Nil | TempDir) #

[View source]
def validate_iso(iso_file : String | Nil) : Bool #

Validate a string to ensure it is a valid path and iso format

Returns whether source matches unix path directory and ends with .iso


[View source]
def validate_requirements #

Check list of requirements

Alerts user to install any uninstalled requirements and exits program if any are found


[View source]