github - Ruby Octokit 2fa list -


im new ruby , github.

i have way of displaying admins dont have 2fa seperate displaying other information admins i.e username / email / full name.

i want able combine outputs part of list , have 2fa column in output.

existing script :

lists user attributes seperatesly i.e username / email.

output_row = "|#{counter}|#{m.login}|#{@client.user(m.login).email}|#{@client.user(m.login).name}|" puts output_row end 

lists user without 2fa

invalid_members = client.organization_members('******',{:role => "admin", :filter => "2fa_disabled"})     counter = 0 invalid_members.each |m| counter = counter+1 #output_row = "|%3i | %20s | %35s |\n" % [counter,m.login,@client.user(m.login).email] output_row = "|#{counter}|#{m.login}|#{@client.user(m.login).email}|#{@client.user(m.login).name}|" puts output_row end 

solution im looking addition first codeblock contains similar to

 |#{@client.user(m.login).2faattribute}| 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -