Class: RouterosGuestPlugin::Cap::DisableSSHInsertKey

Inherits:
Object
  • Object
show all
Defined in:
lib/guest/cap/disable_ssh_insert_key.rb

Class Method Summary collapse

Class Method Details

.disable_ssh_insert_key(machine) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/guest/cap/disable_ssh_insert_key.rb', line 7

def self.disable_ssh_insert_key(machine)
  if machine.config.vm.guest == :routeros 
    # Echo a message on the guest machine
    machine.ui.info("Disabling ssh insert key for RouterOS")
    machine.config.ssh.insert_key = false
  end
end