class SGOS < Oxidized::Model comment '!- ' prompt /\w+>|#/ expect /--More--/ do |data, re| send ' ' data.sub re, '' end cmd :all do |cfg| cfg.each_line.to_a[1..-3].join end cmd 'show licenses' do |cfg| comment cfg end cmd 'show general' do |cfg| comment cfg end cmd :secret do |cfg| cfg.gsub! /^(security hashed-enable-password).*/, '\\1