Module: Inspec::Resources::GroupManagementSelector
Overview
This file contains two resources, the ‘group` and `groups` resource. The `group` resource is optimized for requests that verify specific groups that you know upfront for testing. If you need to query all groups or search specific groups with certain properties, use the `groups` resource.
Instance Method Summary collapse
-
#select_group_manager(os) ⇒ Object
select group provider based on the operating system returns nil, if no group manager was found for the operating system.
Instance Method Details
#select_group_manager(os) ⇒ Object
select group provider based on the operating system returns nil, if no group manager was found for the operating system
15 16 17 18 19 20 21 |
# File 'lib/resources/groups.rb', line 15 def select_group_manager(os) if os.unix? @group_provider = UnixGroup.new(inspec) elsif os.windows? @group_provider = WindowsGroup.new(inspec) end end |