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.ReadWriteCommandRemove a file (such as a README) from the package.
Inherited attributes:
ui,package,outputAttributes:
file_path,file_id-
__init__(ui)[source]¶ Instantiate this command with the given UI.
Parameters: ui (UI) -- User interface instance.
-
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-- ifready_to_run()reportsFalse
-
file_id= None¶ File identifier to be removed from the package.
-
file_path= None¶ File name or path to be removed from the package.
-