Class: Nonnative::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/nonnative/runner.rb

Overview

Base runtime wrapper for a configured runnable unit.

A runner wraps a configuration object (a subclass of ConfigurationRunner) and exposes lifecycle behavior via specialized subclasses:

  • Process for OS-level child processes

  • Server for in-process Ruby servers (threads)

  • Service for proxy-only external dependencies

See Also:

Direct Known Subclasses

Process, Server, Service

Instance Method Summary collapse

Constructor Details

#initialize(service) ⇒ Runner

Returns a new instance of Runner.

Parameters:



18
19
20
# File 'lib/nonnative/runner.rb', line 18

def initialize(service)
  @service = service
end

Instance Method Details

#nameString?

Returns the configured runner name.

Returns:

  • (String, nil)


25
26
27
# File 'lib/nonnative/runner.rb', line 25

def name
  service.name
end