Class: OsCtld::Devices::V2::GroupManager

Inherits:
Manager
  • Object
show all
Defined in:
lib/osctld/devices/v2/group_manager.rb

Instance Attribute Summary

Attributes inherited from Manager

#configurator, #devices, #owner

Instance Method Summary collapse

Methods inherited from Manager

#add, #add_new, #add_to_changeset, #apply, #check_availability!, #check_descendant_mode!, #check_descendants!, #check_unset_inherit!, #chmod, class_for, #detect, #do_add, #dump, #dup, #each, #export, #find, #get, #include?, #inherit, #inherit_promoted, #inherit_recursive, #inherited?, #init, #initialize, load, new_for, #promote, #provide, #remove, #replace, #select, #set_inherit, #sync, #uninherit_recursive, #unset_inherit, #update_inherited_mode, #used?, #used_by_descendants?

Constructor Details

This class inherits a constructor from OsCtld::Devices::Manager

Instance Method Details

#assets(add) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/osctld/devices/v2/group_manager.rb', line 5

def assets(add)
  add.cgroup_program(
    group.abs_cgroup_path('devices'),
    desc: 'Controls access to devices',
    program_name: configurator.prog_name,
    attach_type: 'cgroup_device',
    attach_flags: 'multi'
  )
end

#changeset_sort_keyObject



27
28
29
# File 'lib/osctld/devices/v2/group_manager.rb', line 27

def changeset_sort_key
  group.name
end

#childrenObject



19
20
21
# File 'lib/osctld/devices/v2/group_manager.rb', line 19

def children
  group.children
end

#configurator_classObject



23
24
25
# File 'lib/osctld/devices/v2/group_manager.rb', line 23

def configurator_class
  Devices::V2::GroupConfigurator
end

#parentObject



15
16
17
# File 'lib/osctld/devices/v2/group_manager.rb', line 15

def parent
  group.parent
end