Ask

data class Ask(val family: String, val command: List<String>, val why: String)(source)

A check the report does not answer. family is an attribute family key prefix (tool.node, limits.nofile, os.release), command the fixed command to run where it fails and why what the report leaves out. CAPTURE is the family of the whole-machine capture.

Constructors

Link copied to clipboard
constructor(family: String, command: List<String>, why: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

A command typed into a server console, not a shell: its output goes to a file.

Link copied to clipboard
Link copied to clipboard

The command as typed.

Link copied to clipboard

True when the same check can also be run where the program works and its output compared: a single command whose output is read as facts (not the capture, the clean run, the error text or a console command).

Link copied to clipboard
val why: String

Functions

Link copied to clipboard
fun pasteWorks(session: String? = null): String

The paste form of the works-side step: the session lives where the first answer was given, so the check runs on the other machine and its output is pasted here.

Link copied to clipboard
fun piped(session: String? = null): String

The command with its output fed to drift why --reply; session names the session file when it is not the default one.

Link copied to clipboard
fun pipedWorks(session: String? = null): String

The command with its output fed to the works-side answer of drift why --reply.

Link copied to clipboard

The one plain sentence that asks for it.

Link copied to clipboard
fun sshWorks(session: String? = null): String

The works-side step for a machine that can be reached by ssh.

Link copied to clipboard
fun toJson(session: String? = null, works: Boolean = false): JsonObject

works adds pipedWorks for a check that can also be run where the program works.