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) ⇒ SessionExecuteRequest

Initialize a new SessionExecuteRequest

Parameters:

  • command (String)

    The command to execute

  • run_async (Boolean) (defaults to: false)

    Whether to execute the command asynchronously



76
77
78
79
# File 'lib/daytona/common/process.rb', line 76

def initialize(command:, run_async: false)
  @command = command
  @run_async = run_async
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