Merge pull request #212 from basecamp/role-primary-hosts

Pull the primary host from the role
This commit is contained in:
David Heinemeier Hansson
2023-04-12 14:09:38 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ class Mrsk::Commander
end
def primary_host
specific_hosts&.first || config.primary_web_host
specific_hosts&.first || specific_roles&.first&.primary_host || config.primary_web_host
end
def roles