Shaun Jackman 1fb1677532 Linuxbrew: Move ISSUES_URL to os from global
Closes Homebrew/linuxbrew#103

Closes Homebrew/homebrew#30830.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-12 15:39:59 -05:00

20 lines
420 B
Ruby

module OS
def self.mac?
/darwin/i === RUBY_PLATFORM
end
def self.linux?
/linux/i === RUBY_PLATFORM
end
if OS.mac?
ISSUES_URL = "https://github.com/Homebrew/homebrew/wiki/troubleshooting"
PATH_OPEN = "/usr/bin/open"
elsif OS.linux?
ISSUES_URL = "https://github.com/Homebrew/linuxbrew/wiki/troubleshooting"
PATH_OPEN = "xdg-open"
else
raise "Unknown operating system"
end
end