Cake.Hosts addin
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.
Functionalty to operate hosts-file. Requres admin permissions and will probably fail on your general CI server.
Mostly aimed on automation scripts rather than actual project builds.
Install via:#addin "nuget:?package=Cake.Hosts"
General
AddHostsRecord Alias from Cake.Hosts addin |
Appends a record to the end of hosts file. If this value already exist, no modifications applied |
HostsRecordExists Alias from Cake.Hosts addin |
Checks if a record already exists in hosts file |
RemoveHostsRecord Alias from Cake.Hosts addin |
Removes a line with given IP address and domain name. If given pair does not exist in hosts file, no modifications applied |