Sha256: bd65ebf700c3ef7a04570b6f8792d7d123408f3e02d590cdc20aecdfbd0c66ef
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
class ARBOS < Oxidized::Model using Refinements # Arbor OS model # prompt /^[\S\s]+\n([\w.@-]+[:\/#>]+)\s?$/ comment '# ' cmd 'system hardware' do |cfg| cfg.gsub! /^Boot time:\s.+/, '' # Remove boot timer cfg.gsub! /^Load averages:\s.+/, '' # Remove CPU load info cfg = cfg.each_line.to_a[2..-1].join comment cfg end cmd 'system version' do |cfg| comment cfg end cmd 'config show' do |cfg| cfg end cfg :ssh do exec true pre_logout 'exit' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.30.1 | lib/oxidized/model/arbos.rb |
oxidized-0.30.0 | lib/oxidized/model/arbos.rb |
oxidized-0.29.1 | lib/oxidized/model/arbos.rb |