Sha256: 98a930e2f0eed56941b1e1049a3c9697fee7f4b4b60bc0aced8a46d6f68cd9d0
Contents?: true
Size: 529 Bytes
Versions: 4
Compression:
Stored size: 529 Bytes
Contents
class FortiWLC < Oxidized::Model using Refinements comment '# ' cmd :all do |cfg, cmdstring| new_cfg = comment "COMMAND: #{cmdstring}\n" new_cfg << cfg.each_line.to_a[1..-2].map { |line| line.gsub(/(conf_file_ver=)(.*)/, '\1<stripped>\3') }.join end prompt /^([-\w.\/:?\[\]()]+[#>]\s?)$/ cmd 'show controller' do |cfg| comment cfg end cmd 'show ap' do |cfg| comment cfg end cmd 'show running-config' do |cfg| comment cfg end cfg :telnet, :ssh do pre_logout "exit\n" end end
Version data entries
4 entries across 4 versions & 1 rubygems