mac_maker.profile.spec_file

A file containing an Ansible provisioning specification.

mac_maker.profile.spec_file.exceptions

Exceptions for spec files.

mac_maker.profile.spec_file.spec_file_validator

A provisioning spec file validator.

class mac_maker.profile.spec_file.SpecFile[source]

A file containing an Ansible provisioning specification.

property content: Spec

Return the spec file’s content.

Returns:

The spec file content.

Raises:

SpecFileContentNotDefined

load()[source]

Read a spec object from a file on the file system.

Return type:

None

property path: Path | str

Return the path to the spec file.

Returns:

The path to the spec file.

Raises:

SpecFilePathNotDefined

write()[source]

Save a spec object to file on the file system.

Return type:

None