Skip to content

Instantly share code, notes, and snippets.

@trak3r
Created July 10, 2009 00:05
Show Gist options
  • Save trak3r/144114 to your computer and use it in GitHub Desktop.
Save trak3r/144114 to your computer and use it in GitHub Desktop.
thread bug in capistrano
# threads = Array(servers).map { |server| establish_connection_to(server, failed_servers) }
# threads.each { |t| t.join }
Array(servers).each { |server| safely_establish_connection_to(server, Thread.current, failed_servers) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment