Skip to content

Instantly share code, notes, and snippets.

@blomquisg
Created November 16, 2015 22:33
Show Gist options
  • Save blomquisg/b88c3ac018fc00f14a34 to your computer and use it in GitHub Desktop.
Save blomquisg/b88c3ac018fc00f14a34 to your computer and use it in GitHub Desktop.
verify_credentials_with_ssh call stack
verify_credentials_with_ssh calls connect_ssh: https://github.com/ManageIQ/manageiq/blob/master/app/models/host.rb#L857
connect_ssh calls MiqSshUtil#shell_with_ssu: https://github.com/ManageIQ/manageiq/blob/master/app/models/host.rb#L1139
MiqSshUtil#shell_with_su calls #new: https://github.com/ManageIQ/manageiq/blob/master/gems/pending/util/MiqSshUtilV2.rb#L217
MiqSshUtil#new calls #run_session: https://github.com/ManageIQ/manageiq/blob/master/gems/pending/util/MiqSshUtilV2.rb#L114
MiqSshUtil#run_session calls MiqSockUtil#getFullyQualifiedDomainName: https://github.com/ManageIQ/manageiq/blob/master/gems/pending/util/MiqSshUtilV2.rb#L256-L258
@blomquisg
Copy link
Author

This all actually works better as a comment

Host#verify_credentials_with_ssh calls #connect_ssh:

https://github.com/ManageIQ/manageiq/blob/master/app/models/host.rb#L857

Host#connect_ssh calls MiqSshUtil#shell_with_ssu:

https://github.com/ManageIQ/manageiq/blob/master/app/models/host.rb#L1139

MiqSshUtil#shell_with_su calls #new:

https://github.com/ManageIQ/manageiq/blob/master/gems/pending/util/MiqSshUtilV2.rb#L217

MiqSshUtil#new calls #run_session:

https://github.com/ManageIQ/manageiq/blob/master/gems/pending/util/MiqSshUtilV2.rb#L114

MiqSshUtil#run_session calls MiqSockUtil#getFullyQualifiedDomainName:

https://github.com/ManageIQ/manageiq/blob/master/gems/pending/util/MiqSshUtilV2.rb#L256-L258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment