Class: Zoom::SecurityProfile::UnsafeJava
- Inherits:
-
Zoom::SecurityProfile
- Object
- Zoom::SecurityProfile
- Zoom::SecurityProfile::UnsafeJava
- Defined in:
- lib/zoom/profile/unsafe_java.rb
Instance Method Summary collapse
-
#initialize(n = nil, o = nil, f = nil, b = nil, a = nil) ⇒ UnsafeJava
constructor
A new instance of UnsafeJava.
Constructor Details
#initialize(n = nil, o = nil, f = nil, b = nil, a = nil) ⇒ UnsafeJava
Returns a new instance of UnsafeJava.
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/zoom/profile/unsafe_java.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 --java" when "ag", "pt" f ||= "-S -G \"\\.(java|properties)$\"" when "grep" f ||= [ "-i", "--include=\"*.java\"", "--include=\"*.properties\"" ].join(" ") end super(n, nil, f, b, a) @pattern = [ "(sun\\.misc\\.)?Unsafe", "|", "(", [ "\\.exec", "\\.getRuntime", "readObject", "Runtime" ].join("|"), ")", "\\(" ].join @taggable = true end |