Sha256: 20e48f0f838057989ec3f066998561e82ade64d6c285974c99a39472c1f5ed43
Contents?: true
Size: 413 Bytes
Versions: 6
Compression:
Stored size: 413 Bytes
Contents
class NetScaler < Oxidized::Model prompt /^([\w\.-]*>\s?)$/ comment '# ' cmd :all do |cfg| cfg.each_line.to_a[1..-3].join end cmd 'show version' do |cfg| comment cfg end cmd 'show hardware' do |cfg| comment cfg end cmd :secret do |cfg| cfg.gsub! /\w+\s(-encrypted)/, '<secret hidden> \\1' cfg end cmd 'show ns ns.conf' cfg :ssh do pre_logout 'exit' end end
Version data entries
6 entries across 6 versions & 1 rubygems