summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/netonix.rb
blob: 4624f8357910b2484fb4300c5e6a66ea70c12d92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class Netonix < Oxidized::Model
  prompt /^[\w\s.@_\/:-]+#/

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

  cmd 'cat config.json;echo'

  cfg :ssh do
    post_login 'cmdline'
    pre_logout 'exit'
    pre_logout 'exit'
  end
end