Sha256: 064b242b348f8e3b2e558803fd2adaae4236be481efa3bb122ff9102642c4432
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
class PfSense < Oxidized::Model # use other use than 'admin' user, 'admin' user cannot get ssh/exec. See issue #535 comment '# ' #add a comment in the final conf def add_comment comment "\n###### #{comment} ######\n" end cmd :all do |cfg| cfg.each_line.to_a[1..-2].join end #show the persistent configuration pre do cfg = add_comment 'Configuration' cfg += cmd 'cat /cf/conf/config.xml' end cfg :ssh do exec true pre_logout 'exit' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.16.3 | lib/oxidized/model/pfsense.rb |