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