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
Appends a record to the end of hosts file. If this value already exist, no modifications applied
Syntax
public static void AddHostsRecord(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 add |
domainName |
string |
Domain name to add |
Return Value