Closed ilijamt closed 7 years ago
you could define some helper method in your custom_messaging.rb
def server_hostnames
roles(:web).map do |host|
"#{host.user}@#{host.hostname}"
end.join(', ')
end
def payload_for_updating
{
text: "on server #{server_hostnames} " + super[:text]
}
end
Is it possible to get a list of all the servers I'm deploying too, so my message will show to which servers I'm also deploying.