Sha256: 5c3ebcd41ec124083836c94c00cbe26795d6bda6d35a56e4f8ecccf1057a32f2
Contents?: true
Size: 369 Bytes
Versions: 5
Compression:
Stored size: 369 Bytes
Contents
class AsterNOS < Oxidized::Model using Refinements prompt /^[^\$]+\$/ comment '# ' cmd :all do |cfg| cfg.each_line.to_a[1..-2].join end cmd 'show version' do |cfg| # @model = Regexp.last_match(1) if cfg =~ /^Model: (\S+)/ comment cfg end cmd "show runningconfiguration all" cfg :ssh do # exec true pre_logout 'exit' end end
Version data entries
5 entries across 5 versions & 1 rubygems