Class: Zoom::Profile::Passwords
- Inherits:
-
Object
- Object
- Zoom::Profile::Passwords
- Defined in:
- lib/zoom/profile/passwords.rb
Instance Method Summary collapse
-
#initialize(n, o = nil, f = "", b = "", a = "") ⇒ Passwords
constructor
A new instance of Passwords.
Constructor Details
#initialize(n, o = nil, f = "", b = "", a = "") ⇒ Passwords
Returns a new instance of Passwords.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/zoom/profile/passwords.rb', line 17 def initialize(n, o = nil, f = "", b = "", a = "") op = Zoom::ProfileManager.default_profile after = "| \\grep -v \"^[^:]*test[^:]*:[0-9]+:\"" case op when /^ack(-grep)?$/ super(n, op, "--smart-case #{f}", "", after) when "ag" super(n, op, "-Su #{f}", "", after) when "pt" super(n, op, "-SU --hidden #{f}", "", after) when "grep" super(n, op, "-ai #{f}", "", after) else # Shouldn't happen end @pattern = "(key|pass(word|wd)?)[^:=,>]? *[:=,>]" @taggable = true end |