Method: Inspec::Resources::UnixFilePermissions#usergroup_for

Defined in:
lib/resources/file.rb

#usergroup_for(usergroup, specific_user) ⇒ Object



173
174
175
176
177
178
179
180
181
# File 'lib/resources/file.rb', line 173

def usergroup_for(usergroup, specific_user)
  if usergroup == 'others'
    'other'
  elsif (usergroup.nil? || usergroup.empty?) && specific_user.nil?
    'all'
  else
    usergroup
  end
end