# File lib/automateit/account_manager/etc.rb, line 62def[](query)
::Etc.endgrentbegincasequerywhenStringreturn::Etc.getgrnam(query)
whenFixnumreturn::Etc.getgrgid(query)
elseraiseTypeError.new("unknonwn type for query: #{query.class}")
endrescueArgumentErrorreturnnilendend