| 
									
										
										
										
											2013-10-18 12:56:51 -05:00
										 |  |  | module OS | 
					
						
							|  |  |  |   def self.mac? | 
					
						
							|  |  |  |     /darwin/i === RUBY_PLATFORM | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   def self.linux? | 
					
						
							|  |  |  |     /linux/i === RUBY_PLATFORM | 
					
						
							|  |  |  |   end | 
					
						
							| 
									
										
										
										
											2014-06-03 16:59:50 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   if OS.mac? | 
					
						
							| 
									
										
										
										
											2014-07-12 09:00:40 -04:00
										 |  |  |     ISSUES_URL = "https://github.com/Homebrew/homebrew/wiki/troubleshooting" | 
					
						
							| 
									
										
										
										
											2014-06-03 16:59:50 +02:00
										 |  |  |     PATH_OPEN = "/usr/bin/open" | 
					
						
							|  |  |  |   elsif OS.linux? | 
					
						
							| 
									
										
										
										
											2014-07-12 09:00:40 -04:00
										 |  |  |     ISSUES_URL = "https://github.com/Homebrew/linuxbrew/wiki/troubleshooting" | 
					
						
							| 
									
										
										
										
											2014-06-03 16:59:50 +02:00
										 |  |  |     PATH_OPEN = "xdg-open" | 
					
						
							|  |  |  |   else | 
					
						
							|  |  |  |     raise "Unknown operating system" | 
					
						
							|  |  |  |   end | 
					
						
							| 
									
										
										
										
											2013-10-18 12:56:51 -05:00
										 |  |  | end |