lib/aua/operating_systems/linux.rb in aua-0.2.2 vs lib/aua/operating_systems/linux.rb in aua-0.2.3
- old
+ new
@@ -1,23 +1,23 @@
module Aua::OperatingSystems::Linux
-
+
def self.extend?(agent)
agent.platform_string == "X11" || agent.app_comments_string.match(PATTERN_LINUX)
end
-
+
PATTERN_LINUX = /(l|L)inux/
-
+
def platform
:X11
end
-
+
def os_name
:Linux
end
-
+
def os_version
@os_version ||= if app_comments_string =~ /OpenBSD/
- "OpenBSD"
+ "OpenBSD"
elsif products.include?("Ubuntu")
"Ubuntu"
elsif products.include?("Red") && products.include?("Hat")
"Red Hat"
elsif products.include?("CentOS")
\ No newline at end of file