Class: OsCtld::Devices::V2::ContainerConfigurator
Instance Attribute Summary
Attributes inherited from Configurator
#prog_name
Attributes inherited from Configurator
#owner
Instance Method Summary
collapse
#attach_prog, #get_prog
#add_device, #apply_changes, #dup, #initialize, #remove_device
Instance Method Details
#abs_cgroup_path ⇒ Object
24
25
26
|
# File 'lib/osctld/devices/v2/container_configurator.rb', line 24
def abs_cgroup_path
owner.abs_apply_cgroup_path('devices')
end
|
#cgroup_path ⇒ Object
20
21
22
|
# File 'lib/osctld/devices/v2/container_configurator.rb', line 20
def cgroup_path
owner.base_cgroup_path
end
|
#init(devices) ⇒ Object
5
6
7
8
9
|
# File 'lib/osctld/devices/v2/container_configurator.rb', line 5
def init(devices)
get_prog(devices)
end
|
11
12
13
14
15
16
|
# File 'lib/osctld/devices/v2/container_configurator.rb', line 11
def reconfigure(devices)
return unless CGroup.exist?(abs_cgroup_path)
attach_prog(devices)
end
|