COT.commands.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.commands.command.ReadWriteCommand

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

Inherited attributes:

ui, package, output

Attributes: file_path, file_id

__init__(ui)[source]

Instantiate this command with the given UI.

Parameters:ui (UI) -- User interface instance.
create_subparser()[source]

Create 'remove-file' CLI subparser.

ready_to_run()[source]

Check whether the module is ready to run().

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

Do the actual work of this command.

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.