Class: Dumbcli::Device::Arista

Inherits:
Base
  • Object
show all
Defined in:
lib/dumbcli/device/arista.rb

Instance Method Summary collapse

Methods inherited from Base

#close, #established?, #execute, #initialize

Constructor Details

This class inherits a constructor from Dumbcli::Device::Base

Instance Method Details

#connectObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/dumbcli/device/arista.rb', line 4

def connect
  term = ENV['TERM']
  ENV['TERM'] = 'vt100'

  super
  flush
  execute 'terminal length 0'

  ENV['TERM'] = term
end