CakeHostsAliases.

RemoveHostsRecord(ICakeContext, string, string) Method

Summary

Removes a line with given IP address and domain name. If given pair does not exist in hosts file, no modifications applied
Assembly
Cake.Hosts.dll
Namespace
Cake.Hosts
Containing Type
CakeHostsAliases

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

Type Description
void