Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

Kami
Copy link

@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.

None yet