This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Hosts.
Summary
Checks if a record already exists in hosts file
Syntax
public static bool HostsRecordExists(this ICakeContext context, string ipAddress, string domainName)
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The cake context. |
ipAddress |
string |
IP address to check |
domainName |
string |
Domain name to check |
Return Value
Type |
Description |
bool |
If given parameters already constitue a record in hosts file |