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