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.



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

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



71
72
73
# File 'lib/inspec/resources/groups.rb', line 71

def to_s
  "Groups"
end