1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Merge pull request #779 from nathanstitt/master

Roles is a Set, which doesn't have a join method
This commit is contained in:
Tom Clements 2013-11-22 04:59:52 -08:00
commit 7aecdaacd3

View file

@ -65,7 +65,7 @@ server 'example.org', roles: [:db, :workers]
desc "Report Uptimes"
task :uptime do
on roles(:all) do |host|
info "Host #{host} (#{host.roles.join(', ')}):\t#{capture(:uptime)}"
info "Host #{host} (#{host.roles.to_a.join(', ')}):\t#{capture(:uptime)}"
end
end
```