Class: Lich::Common::FrontendLauncher::SpawnPlan

Inherits:
Struct
  • Object
show all
Defined in:
documented/common/frontend_launcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environment:, argv:) ⇒ void

Builds a frozen spawn plan from environment variables and command arguments.

The struct is immediately frozen to prevent mutation of the process execution plan.

Parameters:

  • environment (Hash)

    environment variables for the spawned process

  • argv (Array<String>)

    command name and arguments



20
21
22
23
# File 'documented/common/frontend_launcher.rb', line 20

def initialize(environment:, argv:)
  super(environment: environment.freeze, argv: argv.freeze)
  freeze
end

Instance Attribute Details

#argvObject

Returns the value of attribute argv

Returns:

  • (Object)

    the current value of argv



12
13
14
# File 'documented/common/frontend_launcher.rb', line 12

def argv
  @argv
end

#environmentObject

Returns the value of attribute environment

Returns:

  • (Object)

    the current value of environment



12
13
14
# File 'documented/common/frontend_launcher.rb', line 12

def environment
  @environment
end