Method: Rbeapi::Client.make_connection
- Defined in:
- lib/rbeapi/client.rb
.make_connection(transport, opts = {}) ⇒ Rbeapi::EapiConnection
Creates a connection instance that can either be used directly or passed to a Node instance.
149 150 151 152 153 |
# File 'lib/rbeapi/client.rb', line 149 def make_connection(transport, opts = {}) klass = TRANSPORTS.fetch(transport) cls = Rbeapi::Utils.class_from_string(klass) cls.new(opts) end |