Hemdal.Config.Command (Hemdal v1.1.0)

View Source

The command structure is defining the command to be executed inside of each alert. The data used is:

  • name the name of the script.
  • type the type of the script could be line or script. The first one let us define a command in a single line, the last one let us define a script, a multi-line code which will be copied and executed in the host, and the last one let us run a command interacting with a process for providing information in runtime.
  • interactive specify if the command is handled in an interactive way (default: false).
  • output specify if the output should be stored (default: true).
  • command as the command line to be executed. It could be only one line or a multi-line script.

Summary

Types

t()

@type t() :: %Hemdal.Config.Command{
  command: String.t(),
  interactive: boolean(),
  name: String.t(),
  output: boolean(),
  type: String.t()
}

Functions

cast(params, opts \\ [])

Callback implementation for Construct.cast/2.

make(params \\ %{}, opts \\ [])

Callback implementation for Construct.make/2.

make!(params \\ %{}, opts \\ [])

Callback implementation for Construct.make!/2.