Method: Inspec::Resources::Group#initialize

Defined in:
lib/inspec/resources/groups.rb

#initialize(groupname) ⇒ Group

Returns a new instance of Group.



96
97
98
99
100
101
102
# File 'lib/inspec/resources/groups.rb', line 96

def initialize(groupname)
  @group = groupname

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