def get_github_authorized_keys(user)
      return [] unless user.github_user_name.present?
      uri = URI("https://github.com/#{user.github_user_name}.keys")
      Net::HTTP.get(uri).split("\n")
    end
def get_github_authorized_keys(user)
      return [] unless user.github_user_name.present?
      uri = URI("https://github.com/#{user.github_user_name}.keys")
      Net::HTTP.get(uri).split("\n")
    end
def get_root_authorized_keys
   get_authorized_keys(get_root_users)
 end

 def get_users_authorized_keys
   get_authorized_keys(get_users)
 end

 def get_authorized_keys(users)
   keys = []
   users.each do |user|
     user.public_keys.each do |id, public_key|
       keys << public_key
     end
   end
   keys
 end