Class: Daytona::SessionExecuteRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/daytona/common/process.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command:, run_async: false, suppress_input_echo: false) ⇒ SessionExecuteRequest

Initialize a new SessionExecuteRequest

Parameters:

  • command (String)

    The command to execute

  • run_async (Boolean) (defaults to: false)

    Whether to execute the command asynchronously

  • suppress_input_echo (Boolean) (defaults to: false)

    Whether to suppress input echo (default is false)



80
81
82
83
84
# File 'lib/daytona/common/process.rb', line 80

def initialize(command:, run_async: false, suppress_input_echo: false)
  @command = command
  @run_async = run_async
  @suppress_input_echo = suppress_input_echo
end

Instance Attribute Details

#commandString

Returns The command to execute.

Returns:

  • (String)

    The command to execute



67
68
69
# File 'lib/daytona/common/process.rb', line 67

def command
  @command
end

#run_asyncBoolean

Returns Whether to execute the command asynchronously.

Returns:

  • (Boolean)

    Whether to execute the command asynchronously



70
71
72
# File 'lib/daytona/common/process.rb', line 70

def run_async
  @run_async
end

#suppress_input_echoBoolean

Returns Whether to suppress input echo.

Returns:

  • (Boolean)

    Whether to suppress input echo



73
74
75
# File 'lib/daytona/common/process.rb', line 73

def suppress_input_echo
  @suppress_input_echo
end