Class: OsCtld::Devices::Configurator

Inherits:
Object
  • Object
show all
Includes:
OsCtl::Lib::Utils::Log
Defined in:
lib/osctld/devices/configurator.rb

Overview

Used to configure the system to reflect osctld settings

Direct Known Subclasses

V1::GroupConfigurator, V2::Configurator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(owner) ⇒ Configurator

Returns a new instance of Configurator.

Parameters:



9
10
11
# File 'lib/osctld/devices/configurator.rb', line 9

def initialize(owner)
  @owner = owner
end

Instance Attribute Details

#ownerDevices::Owner (readonly, protected)

Returns:



38
39
40
# File 'lib/osctld/devices/configurator.rb', line 38

def owner
  @owner
end

Instance Method Details

#add_device(device) ⇒ Object

Parameters:



17
# File 'lib/osctld/devices/configurator.rb', line 17

def add_device(device); end

#apply_changes(changes) ⇒ Object

Parameters:

  • changes (Hash)


26
# File 'lib/osctld/devices/configurator.rb', line 26

def apply_changes(changes); end

#dup(new_owner) ⇒ Object

Parameters:



29
30
31
32
33
# File 'lib/osctld/devices/configurator.rb', line 29

def dup(new_owner)
  ret = super()
  ret.instance_variable_set('@owner', new_owner)
  ret
end

#init(devices) ⇒ Object

Parameters:



14
# File 'lib/osctld/devices/configurator.rb', line 14

def init(devices); end

#reconfigure(devices) ⇒ Object

Parameters:



23
# File 'lib/osctld/devices/configurator.rb', line 23

def reconfigure(devices); end

#remove_device(device) ⇒ Object

Parameters:



20
# File 'lib/osctld/devices/configurator.rb', line 20

def remove_device(device); end