Sha256: d0151dcf6f9f48732e111a16be92527c4b2b7c21ced9b45f053850ac036ae13e
Contents?: true
Size: 527 Bytes
Versions: 9
Compression:
Stored size: 527 Bytes
Contents
class FiberDriver < Oxidized::Model 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
9 entries across 9 versions & 1 rubygems