Class: Proxy::DHCP::Device42::PluginConfiguration
- Inherits:
-
Object
- Object
- Proxy::DHCP::Device42::PluginConfiguration
- Defined in:
- lib/smart_proxy_dhcp_device42/plugin_configuration.rb
Instance Method Summary collapse
Instance Method Details
#load_classes ⇒ Object
3 4 5 6 7 |
# File 'lib/smart_proxy_dhcp_device42/plugin_configuration.rb', line 3 def load_classes require 'dhcp_common/dhcp_common' require 'smart_proxy_dhcp_device42/device42_api' require 'smart_proxy_dhcp_device42/dhcp_device42_main' end |
#load_dependency_injection_wirings(c, settings) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/smart_proxy_dhcp_device42/plugin_configuration.rb', line 9 def load_dependency_injection_wirings(c, settings) c.dependency :connection, (lambda do Device42.new( settings[:server], settings[:scheme], settings[:verify], settings[:username], settings[:password]) end) c.dependency :dhcp_provider, (lambda do ::Proxy::DHCP::Device42::Provider.new( c.get_dependency(:connection), settings[:subnets]) end) end |