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

Freezes the environment and argv into an immutable spawn plan.

Parameters:

  • environment (Hash) —

    environment variables for the spawned process

  • argv (Array<String>) —

    command and arguments for the spawned process



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

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

Instance Attribute Details

#argv ⇒ Object

Returns the value of attribute argv

Returns:

  • (Object) —

    the current value of argv



15
16
17
# File 'documented/common/frontend_launcher.rb', line 15

def argv
  @argv
end

#environment ⇒ Object

Returns the value of attribute environment

Returns:

  • (Object) —

    the current value of environment



15
16
17
# File 'documented/common/frontend_launcher.rb', line 15

def environment
  @environment
end