Sha256: 3a7fee1bc03bfd779ed07a7fc8e933572b8241724f26bf88136a77fc5d6d4010

Contents?: true

Size: 434 Bytes

Versions: 8

Compression:

Stored size: 434 Bytes

Contents

class FirewareOS < Oxidized::Model

  prompt /^\[?\w*\]?\w*<?\w*>?#\s*$/
  comment  '-- '

  cmd :all do |cfg|
    cfg.each_line.to_a[1..-2].join
  end

  cmd 'show sysinfo' do |cfg|
    # avoid commits due to uptime
    cfg = cfg.each_line.select { |line| not line.match /(.*time.*)|(.*memory.*)|(.*cpu.*)/ }
    cfg = cfg.join
    comment cfg
  end

  cmd 'export config to console'

  cfg :ssh do
    pre_logout 'exit'
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
oxidized-0.19.0 lib/oxidized/model/firewareos.rb
oxidized-0.18.0 lib/oxidized/model/firewareos.rb
oxidized-0.17.0 lib/oxidized/model/firewareos.rb
oxidized-0.16.3 lib/oxidized/model/firewareos.rb
oxidized-0.16.2 lib/oxidized/model/firewareos.rb
oxidized-0.16.1 lib/oxidized/model/firewareos.rb
oxidized-0.16.0 lib/oxidized/model/firewareos.rb
oxidized-0.15.0 lib/oxidized/model/firewareos.rb