Sha256: 6b97f1d79203017069979fcfa826261f02d68790c6a503c43f366c092baa7db6

Contents?: true

Size: 380 Bytes

Versions: 17

Compression:

Stored size: 380 Bytes

Contents

class OpenGear < Oxidized::Model

  comment  '# '

  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

17 entries across 17 versions & 1 rubygems

Version Path
oxidized-0.19.0 lib/oxidized/model/opengear.rb
oxidized-0.18.0 lib/oxidized/model/opengear.rb
oxidized-0.17.0 lib/oxidized/model/opengear.rb
oxidized-0.16.3 lib/oxidized/model/opengear.rb
oxidized-0.16.2 lib/oxidized/model/opengear.rb
oxidized-0.16.1 lib/oxidized/model/opengear.rb
oxidized-0.16.0 lib/oxidized/model/opengear.rb
oxidized-0.15.0 lib/oxidized/model/opengear.rb
oxidized-0.14.3 lib/oxidized/model/opengear.rb
oxidized-0.14.2 lib/oxidized/model/opengear.rb
oxidized-0.14.1 lib/oxidized/model/opengear.rb
oxidized-0.14.0 lib/oxidized/model/opengear.rb
oxidized-0.13.1 lib/oxidized/model/opengear.rb
oxidized-0.13.0 lib/oxidized/model/opengear.rb
oxidized-0.12.2 lib/oxidized/model/opengear.rb
oxidized-0.12.1 lib/oxidized/model/opengear.rb
oxidized-0.12.0 lib/oxidized/model/opengear.rb