Prose\UsingRolesTable::removeHostFromRole PHP Method

removeHostFromRole() public method

removeRole
public removeHostFromRole ( string $hostId, string $roleName ) : void
$hostId string ID of the host to remove
$roleName string Role name to remove
return void
    public function removeHostFromRole($hostId, $roleName)
    {
        // what are we doing?
        $log = usingLog()->startAction("remove host '{$hostId}' from '{$roleName}'");
        // remove it
        usingRuntimeTableForTargetEnvironment($this->entryKey)->removeItemFromGroup($roleName, $hostId);
        // all done
        $log->endAction();
    }