Class: AmiSpec::WaitForCloudInit
- Inherits:
-
Object
- Object
- AmiSpec::WaitForCloudInit
- Defined in:
- lib/ami_spec/wait_for_cloud_init.rb
Class Method Summary collapse
Class Method Details
.wait(ip_address, user, key, port = 22) ⇒ Object
5 6 7 8 9 |
# File 'lib/ami_spec/wait_for_cloud_init.rb', line 5 def self.wait(ip_address, user, key, port=22) Net::SSH.start(ip_address, user, keys: [key], :verify_host_key => :never, port: port) do |ssh| ssh.exec! '/usr/bin/cloud-init status --wait' end end |