Skip to content

Modify Task class constructor to also take "parallel" and "serial" argument#1215

Closed
Kami wants to merge 3366 commits intofabric:masterfrom
Kami:allow_user_to_pass_serial_and_parallel_argument_to_task_class_constructor
Closed

Modify Task class constructor to also take "parallel" and "serial" argument#1215
Kami wants to merge 3366 commits intofabric:masterfrom
Kami:allow_user_to_pass_serial_and_parallel_argument_to_task_class_constructor

Conversation

@Kami
Copy link
Copy Markdown

@Kami Kami commented Oct 28, 2014

Currently, if you want to control a value of a serial and parallel attribute on theTask object, you need to manually set it on the instance instead of passing it to the constructor.

This branch allows you to pass those two arguments to the Task class constructor. For backward compatibility reasons, they default to the same value as the values read in the requires_parallel method.

On top of that, I also removed *args, **kwargs from the method signature. Previously, the constructor would quietly swallow and ignore other unsupported args and kwargs you pass in (this makes for a bad API and developer experience).

bitprophet and others added 30 commits February 12, 2014 11:11
Conflicts:
	docs/changelog.rst
Conflicts:
	docs/changelog.rst
Conflicts:
	fabric/version.py
This makes adds the 'command' attribute to local()'s return, as
in run() and sudo() to make the initial command accessible after
execution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.