class ASA < Oxidized::Model # Cisco ASA model # # Only SSH supported for the sake of security prompt /^\r*([\w.@()-\/]+[#>]\s?)$/ comment '! ' cmd :all do |cfg| cfg.each_line.to_a[1..-2].join end cmd :secret do |cfg| cfg.gsub! /enable password (\S+) (.*)/, 'enable password