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:
parent
a8cd5a1f15
commit
d829ffdc09
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue