summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/netonix.rb
blob: f3ebe73bd300b6ec19cf9a1bdb22e5a8855eab1f (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.cut_both
  end

  cmd 'cat config.json;echo'

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