Sha256: 4dc0a10fa4d438549957ba6f91701009c01478b1ebee6e083acdfdd36c9182de

Contents?: true

Size: 552 Bytes

Versions: 4

Compression:

Stored size: 552 Bytes

Contents

class DataCom < Oxidized::Model
  using Refinements

  comment '! '

  expect /^--More--\s+$/ do |data, re|
    send ' '
    data.sub re, ''
  end

  cmd :all do |cfg|
    cfg.cut_head.cut_both.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 :ssh do
    password /^Password:\s$/
    pre_logout 'exit'
  end

  cfg :telnet do
    username /login:\s$/
    password /^Password:\s$/
    pre_logout 'exit'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
oxidized-0.31.0 lib/oxidized/model/datacom.rb
oxidized-0.30.1 lib/oxidized/model/datacom.rb
oxidized-0.30.0 lib/oxidized/model/datacom.rb
oxidized-0.29.1 lib/oxidized/model/datacom.rb