COT.add_file module¶
Module for adding files to VM definitions.
COTAddFile(UI) | Add a file (such as a README) to the package. |
- class COTAddFile(UI)[source]¶
Bases: COT.submodule.COTSubmodule
Add a file (such as a README) to the package.
Inherited attributes: UI, package, output
- create_subparser(parent)[source]¶
Add subparser for the CLI of this submodule.
Parameters: parent (object) – Subparser grouping object returned by ArgumentParser.add_subparsers() Returns: ('add-file', 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[source]¶
File to be added to the package.
Raises: InvalidInputError if the file does not exist.
- file_id = None¶
File identifier string.