class Middleman::PreviewServer::Checks::RequiresBindAddressIfServerNameIsGiven
If the ‘bind_address` is blank this check will fail
This one requires a bind address if the user entered a server name
def validate(information)
def validate(information) return unless information.bind_address.blank? information.valid = false information.reason = format( 'Server name "%<name>s" does not resolve to an ip address', name: information.server_name ) end