module Inspec::Resources::GroupManagementSelector

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.

Public Instance Methods

select_group_manager(os) click to toggle source

select group provider based on the operating system returns nil, if no group manager was found for the operating system

# File lib/inspec/resources/groups.rb, line 14
def select_group_manager(os)
  @group_provider = if os.darwin?
                      DarwinGroup.new(inspec)
                    elsif os.unix?
                      UnixGroup.new(inspec)
                    elsif os.windows?
                      WindowsGroup.new(inspec)
                    end
end