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

Roles is a Set, which doesn't have a join method

This commit is contained in:
Nathan Stitt 2013-11-11 13:48:55 -06:00
parent a8cd5a1f15
commit d829ffdc09

View file

@ -65,7 +65,7 @@ server 'example.org', roles: [:db, :workers]
desc "Report Uptimes" desc "Report Uptimes"
task :uptime do task :uptime do
on roles(:all) do |host| 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
end end
``` ```