Class: OsCtld::Devices::V2::GroupConfigurator
- Inherits:
-
Configurator
- Object
- Devices::Configurator
- Configurator
- OsCtld::Devices::V2::GroupConfigurator
- Defined in:
- lib/osctld/devices/v2/group_configurator.rb
Instance Attribute Summary
Attributes inherited from Configurator
Instance Method Summary collapse
- #abs_cgroup_path ⇒ Object protected
- #cgroup_path ⇒ Object protected
- #init(devices) ⇒ Object
- #reconfigure(devices) ⇒ Object
Methods inherited from Configurator
Instance Method Details
#abs_cgroup_path ⇒ Object (protected)
21 22 23 |
# File 'lib/osctld/devices/v2/group_configurator.rb', line 21 def abs_cgroup_path owner.abs_cgroup_path('devices') end |
#cgroup_path ⇒ Object (protected)
17 18 19 |
# File 'lib/osctld/devices/v2/group_configurator.rb', line 17 def cgroup_path owner.cgroup_path end |
#init(devices) ⇒ Object
5 6 7 8 9 |
# File 'lib/osctld/devices/v2/group_configurator.rb', line 5 def init(devices) CGroup.mkpath('devices', cgroup_path.split('/'), leaf: false) get_prog(devices) attach_prog(devices) end |
#reconfigure(devices) ⇒ Object
11 12 13 |
# File 'lib/osctld/devices/v2/group_configurator.rb', line 11 def reconfigure(devices) attach_prog(devices) end |