Method: Inspec::Resources::Group#initialize

Defined in:
lib/resources/groups.rb

#initialize(groupname) ⇒ Group

Returns a new instance of Group.



98
99
100
101
102
103
104
# File 'lib/resources/groups.rb', line 98

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