Class: KairosMcp::Daemon::RestrictedShell::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/kairos_mcp/daemon/restricted_shell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cmd_hashObject

Returns the value of attribute cmd_hash

Returns:

  • (Object)

    the current value of cmd_hash



28
29
30
# File 'lib/kairos_mcp/daemon/restricted_shell.rb', line 28

def cmd_hash
  @cmd_hash
end

#duration_msObject

Returns the value of attribute duration_ms

Returns:

  • (Object)

    the current value of duration_ms



28
29
30
# File 'lib/kairos_mcp/daemon/restricted_shell.rb', line 28

def duration_ms
  @duration_ms
end

#sandbox_driverObject

Returns the value of attribute sandbox_driver

Returns:

  • (Object)

    the current value of sandbox_driver



28
29
30
# File 'lib/kairos_mcp/daemon/restricted_shell.rb', line 28

def sandbox_driver
  @sandbox_driver
end

#signalObject

Returns the value of attribute signal

Returns:

  • (Object)

    the current value of signal



28
29
30
# File 'lib/kairos_mcp/daemon/restricted_shell.rb', line 28

def signal
  @signal
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



28
29
30
# File 'lib/kairos_mcp/daemon/restricted_shell.rb', line 28

def status
  @status
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



28
29
30
# File 'lib/kairos_mcp/daemon/restricted_shell.rb', line 28

def stderr
  @stderr
end

#stderr_truncatedObject

Returns the value of attribute stderr_truncated

Returns:

  • (Object)

    the current value of stderr_truncated



28
29
30
# File 'lib/kairos_mcp/daemon/restricted_shell.rb', line 28

def stderr_truncated
  @stderr_truncated
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



28
29
30
# File 'lib/kairos_mcp/daemon/restricted_shell.rb', line 28

def stdout
  @stdout
end

#stdout_truncatedObject

Returns the value of attribute stdout_truncated

Returns:

  • (Object)

    the current value of stdout_truncated



28
29
30
# File 'lib/kairos_mcp/daemon/restricted_shell.rb', line 28

def stdout_truncated
  @stdout_truncated
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


33
# File 'lib/kairos_mcp/daemon/restricted_shell.rb', line 33

def success? = !signal && status == 0