Class: Inspec::Resources::Groups

Inherits:
Object
  • Object
show all
Includes:
GroupManagementSelector
Defined in:
lib/inspec/resources/groups.rb

Instance Method Summary collapse

Methods included from GroupManagementSelector

#select_group_manager

Constructor Details

#initializeGroups

Returns a new instance of Groups.



44
45
46
47
48
# File 'lib/inspec/resources/groups.rb', line 44

def initialize
  # select group manager
  @group_provider = select_group_manager(inspec.os)
  return skip_resource "The `groups` resource is not supported on your OS yet." if @group_provider.nil?
end

Instance Method Details

#to_sObject



58
59
60
# File 'lib/inspec/resources/groups.rb', line 58

def to_s
  "Groups"
end