def verify_host_key_option
      current_net_ssh = Net::SSH::Version::CURRENT
      new_option_version = Net::SSH::Version[4, 2, 0]

      current_net_ssh >= new_option_version ? :verify_host_key : :paranoid
    end
def verify_host_key_option
      current_net_ssh = Net::SSH::Version::CURRENT
      new_option_version = Net::SSH::Version[4, 2, 0]

      current_net_ssh >= new_option_version ? :verify_host_key : :paranoid
    end
Returns the correct host-key-verification option key to use depending
 on what version of net-ssh is in use. In net-ssh <= 4.1, the supported
 parameter is `paranoid` but in 4.2, it became `verify_host_key`

 `verify_host_key` does not work in <= 4.1, and `paranoid` throws
 deprecation warnings in >= 4.2.

 While the "right thing" to do would be to pin train's dependency on
 net-ssh to ~> 4.2, this will prevent InSpec from being used in
 Chef v12 because of it pinning to a v3 of net-ssh.