Sha256: 25ba080cbcb79b1e912b6ff0b3e672e09613c30536c4a30ab40ac732686e39a1
Contents?: true
Size: 561 Bytes
Versions: 3
Compression:
Stored size: 561 Bytes
Contents
class IronWare < Oxidized::Model comment '! ' cmd :all do |cfg| cfg.each_line.to_a[1..-3].join end cmd 'show running-config' do |cfg| cfg = cfg.each_line.to_a[3..-1].join cfg end cmd 'show version' do |cfg| comment cfg end cmd 'show chassis' do |cfg| cfg.gsub! "\xFF", '' # ugly hack - avoids JSON.dump utf-8 breakage on 1.9.. comment cfg end cfg :telnet do username /^Username:/ password /^Password:/ end cfg :telnet, :ssh do post_login 'skip-page-display' pre_logout 'logout' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.5.0 | lib/oxidized/model/ironware.rb |
oxidized-0.4.1 | lib/oxidized/model/ironware.rb |
oxidized-0.4.0 | lib/oxidized/model/ironware.rb |