class Launchy::Detect::HostOsFamily

HostOsFamily::Unknown
If the current host familiy cannot be detected then return
Detect the current host os family

def cygwin?

def cygwin?
  self == Cygwin
end

def cygwin?

def cygwin?
  self.class.cygwin?
end

def darwin?

def darwin?
  self == Darwin
end

def darwin?

def darwin?
  self.class.darwin?
end

def detect(host_os = HostOs.new)

def detect(host_os = HostOs.new)
  found = find_child(:matches?, host_os)
  return found.new(host_os) if found
  raise NotFoundError, "Unknown OS family for host os '#{host_os}'. #{Launchy.bug_report_message}"
end

def initialize(host_os = HostOs.new)

def initialize(host_os = HostOs.new)
  @host_os = host_os
end

def matches?(host_os)

def matches?(host_os)
  matching_regex.match(host_os.to_s)
end

def nix?

def nix?
  self == Nix
end

def nix?

def nix?
  self.class.nix?
end

def windows?

def windows?
  self == Windows
end

def windows?

def windows?
  self.class.windows?
end