Class HostsFile
- Namespace
- Fabricator.Resources
- Assembly
- Fabricator.Resources.dll
[CompilationMapping(SourceConstructFlags.ObjectType)]
public class HostsFile
- Inheritance
-
HostsFile
- Inherited Members
Methods
Record(string, string, FSharpOption<AbsolutePath>?)
Creates a resource for managing a host file entry.
public static IResource Record(string ipAddress, string host, FSharpOption<AbsolutePath>? hostsFilePath)
Parameters
ipAddressstringThe IP address for the host entry.
hoststringThe hostname to map to the IP address.
hostsFilePathFSharpOption<AbsolutePath>Optional path to the hosts file. Defaults to the platform-specific hosts file path: Windows: %SystemRoot%\drivers\etc\hosts (resolved dynamically), Linux/macOS: /etc/hosts
Returns
- IResource
An IResource for managing the host file entry.