Sha256: 4a2fe58763cc8606e10e300964c90f4f55e799718d1390c4b63e0d84788d52ff
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 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| cfg } cfg :ssh do exec true # don't run shell, run each command in exec channel end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.29.0 | lib/oxidized/model/opengear.rb |