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
Removes a line with given IP address and domain name. If given pair does not exist in hosts file, no modifications applied
Syntax
public static void RemoveHostsRecord(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