struct

Krikri::BatchScript::Step

Inherits Struct < Value < Object

One step to run remotely as part of a batch.

Constructors

new(plugin_target : String, config_json : String, ignore_errors : Bool, module_name : String = "", become_user : String | Nil = nil)
Source

Instance methods

become_user

The become_user this step must run as, or nil for none. This is the daemon KEY: a daemon is one resident process running as one fixed user, so only steps agreeing on this value can share one daemon batch request - see TaskExecutor#run_batch_steps.

Source
config_json

This step's full config, exactly what would be piped via stdin in the non-batched path (PluginManager#execute_remote_plugin).

Source
ignore_errors?
Source
module_name

Simple (non-FQCN) module name, for the daemon transport's own dispatch table.

Source
plugin_target

Already resolved via PluginManager.remote_plugin_target - the bare plugin path, or sudo -n -u <user> -- <path> if become:. Used only by the bash-script transport below; the daemon transport (perf item 3) dispatches by module NAME inside an already-running process instead, and gets its privilege from which daemon it is sent to.

Source