Sha256: f8a48fb3b0383e52c49a8c5ba53eaa252e83cb09a73682aac421aaf1e3ed3b4b
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
class QuantaOS < Oxidized::Model prompt /^\((\w|\S)+\) (>|#)$/ comment '! ' cmd 'show run' do |cfg| cfg.each_line.select do |line| (not line.match /^!.*$/) && (not line.match /^\((\w|\S)+\) (>|#)$/) && (not line.match /^show run$/) end.join end cfg :telnet do username /^User(name)?:/ password /^Password:/ end cfg :telnet, :ssh do post_login do send "enable\n" cmd vars(:enable) || "" end post_login 'terminal length 0' pre_logout do send "quit\n" send "n\n" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.29.0 | lib/oxidized/model/quantaos.rb |