Sha256: ccd9b0ad95e9dbe41c8ae2661e8392efb10cd7b17f837ced5e4325060bdeb5bc

Contents?: true

Size: 465 Bytes

Versions: 14

Compression:

Stored size: 465 Bytes

Contents

class Airos < Oxidized::Model
  # Ubiquiti AirOS circa 5.x

  prompt /^[^#]+# /
  comment '# '

  cmd 'cat /etc/board.info' do |cfg|
    cfg.split("\n").map { |line| "# #{line}" }.join("\n") + "\n"
  end

  cmd 'cat /etc/version' do |cfg|
    comment "airos version: #{cfg}"
  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.29.0 lib/oxidized/model/airos.rb
oxidized-0.28.0 lib/oxidized/model/airos.rb
oxidized-0.27.0 lib/oxidized/model/airos.rb
oxidized-0.26.3 lib/oxidized/model/airos.rb
oxidized-0.26.2 lib/oxidized/model/airos.rb
oxidized-0.26.1 lib/oxidized/model/airos.rb
oxidized-0.26.0 lib/oxidized/model/airos.rb
oxidized-0.25.1 lib/oxidized/model/airos.rb
oxidized-0.25.0 lib/oxidized/model/airos.rb
oxidized-0.24.0 lib/oxidized/model/airos.rb
oxidized-0.23.0 lib/oxidized/model/airos.rb
oxidized-0.22.0 lib/oxidized/model/airos.rb
oxidized-0.21.0 lib/oxidized/model/airos.rb
oxidized-0.20.0 lib/oxidized/model/airos.rb