Sha256: 17183e25b71805680ac0c4fe71c777be539511a5621adedb3ec0702539ca5af0

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

class FiberDriver < Oxidized::Model
  using Refinements

  prompt /\w+#/
  comment "! "

  cmd :all do |cfg|
    cfg.cut_both
  end
  cmd 'show inventory' do |cfg|
    comment cfg
  end

  cmd "show running-config" do |cfg|
    cfg.each_line.to_a[3..-1].join
    cfg.gsub! /^Building configuration.*$/, ''
    cfg.gsub! /^Current configuration:.*$$/, ''
    cfg.gsub! /^! Configuration (saved|generated) on .*$/, ''
    cfg
  end

  cfg :ssh do
    post_login 'terminal length 0'
    post_login 'terminal width 512'
    pre_logout 'exit'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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