Class: Kitchen::Provisioner::Finder::Ssh
- Inherits:
-
Object
- Object
- Kitchen::Provisioner::Finder::Ssh
- Defined in:
- lib/kitchen/provisioner/finder/ssh.rb
Overview
SSH implementation for returning active non-localhost IPs
Constant Summary collapse
- IP4REGEX =
/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/
Instance Method Summary collapse
- #find_fqdn ⇒ Object
- #find_ips ⇒ Object
-
#initialize(connection) ⇒ Ssh
constructor
A new instance of Ssh.
Constructor Details
#initialize(connection) ⇒ Ssh
Returns a new instance of Ssh.
58 59 60 |
# File 'lib/kitchen/provisioner/finder/ssh.rb', line 58 def initialize(connection) @connection = connection end |
Instance Method Details
#find_fqdn ⇒ Object
76 77 78 |
# File 'lib/kitchen/provisioner/finder/ssh.rb', line 76 def find_fqdn @connection.node_execute('hostname -f').chomp.chomp end |