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