Method: Roby::Application#apply_config_interface
- Defined in:
- lib/roby/app.rb
#apply_config_interface(host_port) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Parses and applies the ‘interface’ value from a configuration hash
It is a helper for #apply_config
2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 |
# File 'lib/roby/app.rb', line 2136 def apply_config_interface(host_port) if host_port !~ /:\d+$/ host_port += ":#{Interface::DEFAULT_PORT}" end match = /(.*):(\d+)$/.match(host_port) host = match[1] @shell_interface_host = unless host.empty? host end @shell_interface_port = Integer(match[2]) end |