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