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
in: :sequence not working when used with capistrano roles #96
Comments
Can you try:
See Set#to_a. I wonder if that could be it? |
Thanks @leehambley, using:
actually works. I can use it this way, but its counterintuitive. Do you think this can be changed, so that:
and
both work the same way? |
Definitely that's a bug. It must have something to do with how I'm not sure where best to fix it, actually. I know that Capistrano's I know it sucks, but if you can work around it for the time being, please do. I'm leaving to go on vacation tomorrow, and won't have time to fix this for a while. @seenmyfate I know you're busy mate, but any thoughts on that one way or another. I always liked Sets, and I believe it was my idea originally, but perhaps if people give us an array, we should keep it. Seem to recall wanting to take away the |
@leehambley There is no rush in fixing this, I can live with the workaround for now! Thanks for the help! |
Just ran in to this bug with Capistrano 3.2.0. The workaround fixes it, but |
Sorry, I'm not understanding what you mean, could you rephrase that? |
Reading up I see that I asked @seenmyfate for some input, he's a busy man and just a day or two ago started a vacation, I don't expect to hear back from him, but perhaps someone else could pick up the baton and find out if Set vs. Array each is the problem?
|
@leehambley I just meant to say that I consider this a pretty fundamental feature of Capistrano. I think folks may get confused trying to get this to work, so I was thinking that considering the amount of time that's passed since it was noticed, updating the docs may be a quick win? |
I can't reproduce this in task :test_seq do
on roles(:all), :in => :sequence do |host|
uptime = capture(:uptime)
puts "#{host.hostname} reports: #{uptime}"
end
end The three The only thing I can think of is that perhaps you mistyped |
I also wonder if without the parenthesis around |
I thought so too, but I tried many variations of spacing and parentheses and couldn't reproduce. When Ruby parses it as |
Alright, so I'll re-close the issue, thanks for the investigative work Matt :) |
@leehambley Thanks for looking in to this! |
Not sure if I am doing this right and if it is capistrano or ssh kit related:
does execute on all servers in parallel, while
does execute sequentially.
Not sure if I am doing something wrong here...
The text was updated successfully, but these errors were encountered: