Class: Aireos
- Inherits:
-
Oxidized::Model
- Object
- Oxidized::Model
- Aireos
- Defined in:
- lib/oxidized/model/aireos.rb
Constant Summary
Constants inherited from Oxidized::Model
Oxidized::Model::METADATA_DEFAULT
Constants included from Oxidized::Model::Macros
Oxidized::Model::Macros::VERBS
Instance Attribute Summary
Attributes inherited from Oxidized::Model
Attributes included from Oxidized::Model::DSLCommands
Instance Method Summary collapse
Methods inherited from Oxidized::Model
#cfg, #cmd, #comment, #expect, #expects, #get, inherited, #interpolate_string, #metadata, #output, #prompt, #screenscrape, #send, #significant_changes, #xmlcomment
Methods included from Oxidized::Model::DSLSetup
#cfg, #cfgs, #comment, #expect, #expects, #input_sequence, #inputs, #metadata, #prompt
Methods included from Oxidized::Model::DSLCommands
Methods included from Oxidized::Config::Vars
Instance Method Details
#clean(cfg) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/oxidized/model/aireos.rb', line 44 def clean(cfg) out = [] cfg.each_line do |line| next if line =~ /^\s*$/ next if line =~ /rogue (adhoc|client) (alert|Unknown) [\da-f]{2}:/ line = line[1..-1] if line[0] == "\r" out << line.strip end out = out.join "\n" out << "\n" end |