muteria.repositoryandcode.callback_object module

class muteria.repositoryandcode.callback_object.BaseCallbackObject(op_retval=None, pre_callback_args=None, post_callback_args=None, repository_rootdir=None, repo_executables_relpaths=None, source_files_to_objects=None, dev_tests_list=None)[source]

Bases: ABC

abstract after_command()[source]

This method is executed AFTER the execution of the corrresponding command. The execution of the command return the boolean value that is then set in ‘self.op_retval’ (this is set to None prior execution of the command). :return: (bool) True on success, False on failure.

abstract before_command()[source]

This method is executed BEFORE the execution of the corrresponding command. :return: (bool) True on success and False on failure

set_dev_tests_list(dev_tests_list)[source]
set_op_retval(op_retval)[source]
set_post_callback_args(post_callback_args)[source]
set_pre_callback_args(pre_callback_args)[source]
set_repo_executables_relpaths(repo_executables_relpaths)[source]
set_repository_rootdir(repository_rootdir)[source]
set_source_files_to_objects(source_files_to_objects)[source]
class muteria.repositoryandcode.callback_object.DefaultCallbackObject(op_retval=None, pre_callback_args=None, post_callback_args=None, repository_rootdir=None, repo_executables_relpaths=None, source_files_to_objects=None, dev_tests_list=None)[source]

Bases: BaseCallbackObject

Use this class object if no call back is needed

after_command()[source]

Return True for success

before_command()[source]

Return True for success