Sha256: d134296df3fdf0f86548611a1724a2af4e213510a5bde5403357a12ac163cc0b
Contents?: true
Size: 493 Bytes
Versions: 10
Compression:
Stored size: 493 Bytes
Contents
class DataCom < Oxidized::Model comment '! ' expect /^--More--\s+$/ do |data, re| send ' ' data.sub re, '' end cmd :all do |cfg| cfg.each_line.to_a[1..-2].join cfg.cut_head.cut_tail end cmd 'show firmware' do |cfg| comment cfg end cmd 'show system' do |cfg| comment cfg end cmd 'show running-config' do |cfg| cfg.cut_head end cfg :telnet, :ssh do username /login:\s$/ password /^Password:\s$/ pre_logout 'exit' end end
Version data entries
10 entries across 10 versions & 1 rubygems