Sha256: 8bd2c940cfbdcddee265a8075ac39e5785d0a021577e599c5d8fe1f91a33017e

Contents?: true

Size: 404 Bytes

Versions: 2

Compression:

Stored size: 404 Bytes

Contents

class OpenGear < Oxidized::Model

  comment  '# '
  
  prompt /^(\$\s)?$/

  cmd :secret do |cfg|
    cfg.gsub!(/password (\S+)/, 'password <secret removed>')
    cfg.gsub!(/community (\S+)/, 'community <secret removed>')
    cfg
  end

  cmd('cat /etc/version') { |cfg| comment cfg }

  cmd 'config -g config'

  cfg :ssh do
    exec true  # don't run shell, run each command in exec channel
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oxidized-0.21.0 lib/oxidized/model/opengear.rb
oxidized-0.20.0 lib/oxidized/model/opengear.rb