Sha256: 614ce41f14c3ebfe1b307389c020c4ee84da03d1fe2c0669c81e5e102feacadb

Contents?: true

Size: 380 Bytes

Versions: 18

Compression:

Stored size: 380 Bytes

Contents

class Airos < Oxidized::Model
  # Ubiquiti AirOS circa 5.x
  
  prompt /^[^#]+# /
  
  cmd 'cat /etc/board.info' do |cfg|
    cfg.split("\n").map { |line| "# #{line}" }.join("\n") + "\n"
  end
  
  cmd 'cat /tmp/system.cfg'
  
  cmd :secret do |cfg|
    cfg.gsub! /^(users\.\d+\.password|snmp\.community)=.+/, "# \\1=<hidden>"
    cfg
  end

  cfg :ssh do
    exec true
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
oxidized-0.12.2 lib/oxidized/model/airos.rb
oxidized-0.12.1 lib/oxidized/model/airos.rb
oxidized-0.12.0 lib/oxidized/model/airos.rb
oxidized-0.11.0 lib/oxidized/model/airos.rb
oxidized-0.10.0 lib/oxidized/model/airos.rb
oxidized-0.9.0 lib/oxidized/model/airos.rb
oxidized-0.8.1 lib/oxidized/model/airos.rb
oxidized-0.8.0 lib/oxidized/model/airos.rb
oxidized-0.7.2 lib/oxidized/model/airos.rb
oxidized-0.7.1 lib/oxidized/model/airos.rb
oxidized-0.7.0 lib/oxidized/model/airos.rb
oxidized-0.6.0 lib/oxidized/model/airos.rb
oxidized-0.5.0 lib/oxidized/model/airos.rb
oxidized-0.4.1 lib/oxidized/model/airos.rb
oxidized-0.4.0 lib/oxidized/model/airos.rb
oxidized-0.3.0 lib/oxidized/model/airos.rb
oxidized-0.2.4 lib/oxidized/model/airos.rb
oxidized-0.2.3 lib/oxidized/model/airos.rb