Method: Roby::Application#apply_config

Defined in:
lib/roby/app.rb

#apply_config(config) ⇒ 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.

Sets relevant configuration values from a configuration hash



2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
# File 'lib/roby/app.rb', line 2119

def apply_config(config)
    if (host_port = config["interface"])
        apply_config_interface(host_port)
    elsif (host_port = config.fetch("droby", {})["host"])
        Roby.warn_deprecated(
            "the droby.host configuration parameter in config/app.yml "\
            "is deprecated, use 'interface' at the toplevel instead"
        )
        apply_config_interface(host_port)
    end
end