CakeHostsAliases.

AddHostsRecord(ICakeContext, string, string) Method

Summary

Appends a record to the end of hosts file. If this value already exist, no modifications applied
Assembly
Cake.Hosts.dll
Namespace
Cake.Hosts
Containing Type
CakeHostsAliases

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

Type Description
void