Sha256: 3f6e771b686f3f2c3261c9202a983e178f72fd76d88078ce298c494562546f82
Contents?: true
Size: 472 Bytes
Versions: 3
Compression:
Stored size: 472 Bytes
Contents
class TDRE < Oxidized::Model using Refinements 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.30.1 | lib/oxidized/model/tdre.rb |
oxidized-0.30.0 | lib/oxidized/model/tdre.rb |
oxidized-0.29.1 | lib/oxidized/model/tdre.rb |