cea-hpc/clustershell — Issue #119: Add Task.run() helper
Author: thiell
Created: 2012-03-03 16:47:56+00:00
State: open
Labels: Lib

This simple case to run a simple command:
{{{
task.shell(command, nodes)
task.resume()
}}}

is not so clean and create a code that could be a lot simpler for a so simple need.

Moreover {{{task.resume()}}} is not a logical name for the library new users. It could be useful to have an alias for the {{{resume())}}} command to workaround this.

Both could be done creating a new {{{Task.run()}}} method that will done an optional {{{task.shell()}}} and a {{{task.resume()}}} in the same place.