doit/cmd_strace.py
def wrap_strace(cls, task):
        """wrap task actions into strace command"""
        wrapped_actions = []
        for action in task.actions:
            if isinstance(action, CmdAction):
                cmd = cls.TRACE_CMD % (action._action, cls.TRACE_OUT)
                wrapped = CmdAction(cmd, task, save_out=action.save_out)
                wrapped_actions.append(wrapped)
            else:
                wrapped_actions.append(action)
        task._action_instances = wrapped_actions
        # task should be always executed
        task._extend_uptodate([False])
wrap task actions into strace command
wrap task actions into strace command
wrap task actions into strace command
def wrap_strace(cls, task):
        wrapped_actions = []
        for action in task.actions:
            if isinstance(action, CmdAction):
                cmd = cls.TRACE_CMD % (action._action, cls.TRACE_OUT)
                wrapped = CmdAction(cmd, task, save_out=action.save_out)
                wrapped_actions.append(wrapped)
            else:
                wrapped_actions.append(action)
        task._action_instances = wrapped_actions
        task._extend_uptodate([False])
def wrap_strace ( cls , task ) : wrapped_actions = [ ] for action in task . actions : if isinstance ( action , CmdAction ) : cmd = cls . TRACE_CMD % ( action . _action , cls . TRACE_OUT ) wrapped = CmdAction ( cmd , task , save_out = action . save_out ) wrapped_actions . append ( wrapped ) else : wrapped_actions . append ( action ) task . _action_instances = wrapped_actions task . _extend_uptodate ( [ False ] )
wrap task actions into strace command
wrap task actions into strace command
"""wrap task actions into strace command""" # task should be always executed
cls
task