Sha256: 773cfdae372e5fcaf2de6db5b651152cd627d90bc66db4e7bb86a7c0586f586a
Contents?: true
Size: 451 Bytes
Versions: 7
Compression:
Stored size: 451 Bytes
Contents
class TDRE < Oxidized::Model prompt /^>$/ cmd "get -f" def ssh @input.class.to_s.match(/SSH/) end expect /^>.+$/ do |data, re| send "\r" if ssh data.sub re, '' end cmd :all do |cfg| if ssh cfg.lines.to_a[5..-4].join else cfg.lines.to_a[1..-4].join end end cfg :telnet do username /^Username:/ password /^Password:/ end cfg :telnet, :ssh do pre_logout "DISCONNECT\r" end end
Version data entries
7 entries across 7 versions & 1 rubygems