Exemple #1
0
def proc_evt_echo(cmd, args):
    """Echo args to stdout."""
    no_opts.prog = cmd
    no_opts.usage = "%prog MESSAGE..."
    no_opts.description = "Echo args to stdout"
    opts, args = no_opts.parse_args(args)
    return [event.stdout(" ".join(args))]
Exemple #2
0
def proc_evt_echo(cmd, args):
    """Echo args to stdout."""
    no_opts.prog = cmd
    no_opts.usage = "%prog MESSAGE..."
    no_opts.description = "Echo args to stdout"
    opts, args = no_opts.parse_args(args)
    return [event.stdout(" ".join(args))]
Exemple #3
0
 def task_stdout(self, data):
     # FIXME: RHTS Task can send an event! Handle it!
     self.send_evt(event.stdout(data))
Exemple #4
0
 def task_stdout(self, data):
     # FIXME: RHTS Task can send an event! Handle it!
     self.send_evt(event.stdout(data))