struct

Fluxion::ShellScriptItem

Inherits Fluxion::ShellItemFields < Struct < Value < Object

One script inside a shell-script step.

Exactly one of script (an operator-controlled local file) or url (a remote artifact that must be pinned by sha256). The asymmetry is deliberate: a local path is already inside the trust boundary, a URL is not.

Constructors

new(name : String, script : String | Nil = nil, url : String | Nil = nil, args : Array(String) = [] of String, working_dir : String | Nil = nil, environment : Array(ShellEnvironmentVariable) = [] of ShellEnvironmentVariable, sudo : Bool = false, allowed_exit_codes : Array(Int32) = [] of Int32, creates : String | Nil = nil, unless_command : String | Nil = nil, confirm : String | Nil = nil, timeout : Time::Span = ShellItemFields::DEFAULT_TIMEOUT, sha256 : Checksum | Nil = nil, condition : Condition | Nil = nil)
Source

Instance methods

args
Source
key

Stable identity for plans and state. A remote script is keyed by its URL with credentials and query parameters stripped.

Source
remote?
Source
script
Source
sha256
Source