-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Execute a task only on first node from a pull #1311
Labels
Comments
+1, I've used some variation of this before:
but would be good to make this a bit cleaner. |
But I think good naming required here. Maybe task('only:once', function () {
....
})->once() |
Merged
alinalexandru
added a commit
to alinalexandru/deployer
that referenced
this issue
Jul 27, 2017
@antonmedv what do you think about this PR. |
Merged! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
For example you have to execute a command only once. I don't like a idea of hardcode o server name when defining a task.
Instead of doing
I propose to have a method onFirstHost for example, that will limit the task execution to the first node from available.
If you consider that is an good idea, I can propose a PR with the implementation.
The text was updated successfully, but these errors were encountered: