Sha256: 275de3462e00f8308e2956f7deebdf054bab42ef2650bd7ebdde57c12d94ce6b

Contents?: true

Size: 381 Bytes

Versions: 14

Compression:

Stored size: 381 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 'sort /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

14 entries across 14 versions & 1 rubygems

Version Path
oxidized-0.19.0 lib/oxidized/model/airos.rb
oxidized-0.18.0 lib/oxidized/model/airos.rb
oxidized-0.17.0 lib/oxidized/model/airos.rb
oxidized-0.16.3 lib/oxidized/model/airos.rb
oxidized-0.16.2 lib/oxidized/model/airos.rb
oxidized-0.16.1 lib/oxidized/model/airos.rb
oxidized-0.16.0 lib/oxidized/model/airos.rb
oxidized-0.15.0 lib/oxidized/model/airos.rb
oxidized-0.14.3 lib/oxidized/model/airos.rb
oxidized-0.14.2 lib/oxidized/model/airos.rb
oxidized-0.14.1 lib/oxidized/model/airos.rb
oxidized-0.14.0 lib/oxidized/model/airos.rb
oxidized-0.13.1 lib/oxidized/model/airos.rb
oxidized-0.13.0 lib/oxidized/model/airos.rb