Class: Zoom::SecurityProfile::Passwords

Inherits:
Zoom::SecurityProfile show all
Defined in:
lib/zoom/profile/passwords.rb

Instance Method Summary collapse

Constructor Details

#initialize(n = nil, o = nil, f = nil, b = nil, a = nil) ⇒ Passwords

Returns a new instance of Passwords.



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/zoom/profile/passwords.rb', line 2

def initialize(n = nil, o = nil, f = nil, b = nil, a = nil)
    case Zoom::ProfileManager.default_profile
    when /^ack(-grep)?$/
        f ||= "--smart-case"
    when "ag", "pt"
        f ||= "-SU --hidden"
    when "grep"
        f ||= "-ai"
    end

    super(n, nil, f, b, a)
    @pattern = "(key|pa?ss(w(o?r)?d)?)[^:=,>]? *[:=,>]"
    @taggable = true
end