Skip to content

Instantly share code, notes, and snippets.

@spheromak
Created April 2, 2016 02:06
Show Gist options
  • Save spheromak/905f4ec0e60f194f48072b5abbe6c582 to your computer and use it in GitHub Desktop.
Save spheromak/905f4ec0e60f194f48072b5abbe6c582 to your computer and use it in GitHub Desktop.
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