Sha256: 8797873f7df3a47d8316104d9fe28247eeec574716b88ad7079843e94d13c245
Contents?: true
Size: 559 Bytes
Versions: 3
Compression:
Stored size: 559 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 'exit' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.3.0 | lib/oxidized/model/ironware.rb |
oxidized-0.2.4 | lib/oxidized/model/ironware.rb |
oxidized-0.2.3 | lib/oxidized/model/ironware.rb |