Class: OsCtld::Devices::Configurator
- Inherits:
-
Object
- Object
- OsCtld::Devices::Configurator
- 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
Instance Attribute Summary collapse
- #owner ⇒ Devices::Owner readonly protected
Instance Method Summary collapse
- #add_device(device) ⇒ Object
- #apply_changes(changes) ⇒ Object
- #dup(new_owner) ⇒ Object
- #init(devices) ⇒ Object
-
#initialize(owner) ⇒ Configurator
constructor
A new instance of Configurator.
- #reconfigure(devices) ⇒ Object
- #remove_device(device) ⇒ Object
Constructor Details
#initialize(owner) ⇒ Configurator
Returns a new instance of Configurator.
9 10 11 |
# File 'lib/osctld/devices/configurator.rb', line 9 def initialize(owner) @owner = owner end |
Instance Attribute Details
#owner ⇒ Devices::Owner (readonly, protected)
38 39 40 |
# File 'lib/osctld/devices/configurator.rb', line 38 def owner @owner end |
Instance Method Details
#add_device(device) ⇒ Object
17 |
# File 'lib/osctld/devices/configurator.rb', line 17 def add_device(device); end |
#apply_changes(changes) ⇒ Object
26 |
# File 'lib/osctld/devices/configurator.rb', line 26 def apply_changes(changes); end |
#dup(new_owner) ⇒ Object
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
14 |
# File 'lib/osctld/devices/configurator.rb', line 14 def init(devices); end |
#reconfigure(devices) ⇒ Object
23 |
# File 'lib/osctld/devices/configurator.rb', line 23 def reconfigure(devices); end |
#remove_device(device) ⇒ Object
20 |
# File 'lib/osctld/devices/configurator.rb', line 20 def remove_device(device); end |