def clean(self): """ Clean up artifacts associated with the handler. @return: A clean report. @rtype: L{CleanReport} """ log.info('clean') report = CleanReport() # TODO: revist this ** report.succeeded() return report
def clean(self, conduit): """ Clean up artifacts associated with the handler. @param conduit: A handler conduit. @type conduit: L{pulp.agent.lib.conduit.Conduit} @return: A clean report. @rtype: L{CleanReport} """ log.info("clean") report = CleanReport() # TODO: revist this ** report.set_succeeded() return report
def clean(conduit): """ Clean up. This is a no-op since the consumer does not need to keep any state with regard to bindings. :param conduit: A handler conduit. :type conduit: pulp.agent.lib.conduit.Conduit :return: A clean report. :rtype: CleanReport """ report = CleanReport() report.set_succeeded() return report
def clean(self, conduit): """ Clean up artifacts associated with the handler. @param conduit: A handler conduit. @type conduit: L{pulp.agent.lib.conduit.Conduit} @return: A clean report. @rtype: L{CleanReport} """ log.info('clean') report = CleanReport() cfg = conduit.get_consumer_config().graph() repolib.delete_repo_file(cfg.filesystem.repo_file) report.set_succeeded() return report