Created
April 2, 2016 02:06
-
-
Save spheromak/905f4ec0e60f194f48072b5abbe6c582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class JavaSecurityFiles | |
class << self | |
def list | |
@secfiles ||= scan_for_files | |
end | |
private | |
def scan_for_files | |
s1 = Dir.glob("/usr/lib/jvm/**/jre/lib/**/java.security") | |
s2 = Dir.glob("/usr/java/**/jre/lib/**/java.security") | |
(s1 + s2).uniq | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment