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