COT.remove_file module

Module for removing files from VM definitions.

COTRemoveFile(UI) Remove a file (such as a README) from the package.
class COTRemoveFile(UI)[source]

Bases: COT.submodule.COTSubmodule

Remove a file (such as a README) from the package.

Inherited attributes:

UI, package, output

Attributes: file_path, file_id

create_subparser()[source]

Create ‘remove-file’ CLI subparser.

ready_to_run()[source]

Check whether the module is ready to run().

Returns:(True, ready_message) or (False, reason_why_not)
run()[source]

Do the actual work of this submodule.

Raises:InvalidInputError – if ready_to_run() reports False
file_id = None

File identifier to be removed from the package.

file_path = None

File name or path to be removed from the package.