Class: Rbeapi::Eapilib::SocketEapiConnection
- Inherits:
-
EapiConnection
- Object
- EapiConnection
- Rbeapi::Eapilib::SocketEapiConnection
- Defined in:
- lib/rbeapi/eapilib.rb
Overview
The SocketEapiConnection provides a class for building a domain socket eAPI connection to Arista EOS devices.
Instance Attribute Summary
Attributes inherited from EapiConnection
#error, #open_timeout, #read_timeout
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ SocketEapiConnection
constructor
A new instance of SocketEapiConnection.
Methods inherited from EapiConnection
#authentication, #execute, #request, #send, #timeouts
Constructor Details
#initialize(opts = {}) ⇒ SocketEapiConnection
Returns a new instance of SocketEapiConnection.
337 338 339 340 341 |
# File 'lib/rbeapi/eapilib.rb', line 337 def initialize(opts = {}) path = opts.fetch(:path, DEFAULT_UNIX_SOCKET) transport = NetX::HTTPUnix.new("unix://#{path}") super(transport) end |