Host
Source: src/jix/targets.js#L5-67
Class representing a target host machine.
new Host(address, users = {})
Parameters:
address(string, required) - Host address or hostnameusers(Object, optional) - User definitions (default:{})
Host information is automatically queried from the target machine.
Properties
address(string) - The host addressusers(Object) - User instances, always includes ‘root’os(string) - Operating system typekernel_name(string) - Kernel namearchitecture(string) - CPU architectureos_version(string) - OS version stringmachineId(string) - Unique machine identifierhostname(string) - Hostname of the machine
install(fn)
Source: src/jix/targets.js#L61-66
Execute a function with this host and root user as the target context.
Parameters:
fn(EffectFn) - Function that receives the host as argument
Returns: The return value of fn