Method: Inspec::Resources::Group#local

Defined in:
lib/resources/group.rb

#localObject



66
67
68
69
70
71
72
73
74
# File 'lib/resources/group.rb', line 66

def local
  return nil if group_info.nil? || group_info.size == 0

  # the default case should be one group
  return group_info[0][:local] if group_info.size == 1

  # return array if we got multiple gids
  group_info.map { |grp| grp[:local] }
end