class Proxy::DHCP::RemoteISC::SubnetServiceInitializer

Attributes

config_file_path[R]
leases_file_path[R]

Public Class Methods

new(config_file_path, leases_file_path, parser, subnet_service) click to toggle source
Calls superclass method
# File lib/smart_proxy_dhcp_remote_isc/subnet_service_initializer.rb, line 9
def initialize(config_file_path, leases_file_path, parser, subnet_service)
  @config_file_path = config_file_path
  @leases_file_path = leases_file_path
  super(subnet_service, parser)
end

Public Instance Methods

initialized_subnet_service() click to toggle source
# File lib/smart_proxy_dhcp_remote_isc/subnet_service_initializer.rb, line 15
def initialized_subnet_service
  load_configuration_file(read_config_file, config_file_path)
  load_leases_file(read_leases_file, leases_file_path)
  subnet_service
end
read_config_file() click to toggle source
# File lib/smart_proxy_dhcp_remote_isc/subnet_service_initializer.rb, line 25
def read_config_file
  File.read(File.expand_path(config_file_path))
end
read_leases_file() click to toggle source
# File lib/smart_proxy_dhcp_remote_isc/subnet_service_initializer.rb, line 21
def read_leases_file
  File.read(File.expand_path(leases_file_path))
end