Sha256: 85f0923c2fd4b3a306f7668749d15461bfce12d33858998711f302a1731e2a06
Contents?: true
Size: 487 Bytes
Versions: 9
Compression:
Stored size: 487 Bytes
Contents
class ARBOS < Oxidized::Model # 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
9 entries across 9 versions & 1 rubygems