Method: Inspec::Resources::UnixGroup#group_info

Defined in:
lib/resources/group.rb

#group_info(group, _domain = nil) ⇒ Object



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

def group_info(group, _domain = nil)
  inspec.etc_group.where(name: group).entries.map { |grp|
    {
      name: grp['name'],
      gid: grp['gid'],
    }
  }
end