Class: GDK::CellsPortManager

Inherits:
PortManager show all
Defined in:
lib/gdk/cells_port_manager.rb

Constant Summary

Constants inherited from PortManager

PortManager::DEFAULT_PORTS_FOR_SERVICES, PortManager::PortAlreadyAllocated, PortManager::PortInUseError, PortManager::ServiceUnknownError

Instance Attribute Summary

Attributes inherited from PortManager

#claimed_ports_and_services

Instance Method Summary collapse

Methods inherited from PortManager

#claim, #claimed_service_for_port, #initialize, new_from_config, #resolve_service

Constructor Details

This class inherits a constructor from GDK::PortManager

Instance Method Details

#default_port_for_service(name) ⇒ Object



5
6
7
8
# File 'lib/gdk/cells_port_manager.rb', line 5

def default_port_for_service(name)
  service = resolve_service(name)
  service[:index] + @config.cells.port_offset
end