# File lib/automateit/account_manager/etc.rb, line 28def[](query)
::Etc.endpwentbegincasequerywhenStringreturn::Etc.getpwnam(query)
whenFixnumreturn::Etc.getpwuid(query)
elseraiseTypeError.new("unknonwn type for query: #{query.class}")
endrescueArgumentErrorreturnnilendend