| 
									
										
										
										
											2020-10-10 14:16:11 +02:00
										 |  |  | # typed: true | 
					
						
							| 
									
										
										
										
											2019-04-19 15:38:03 +09:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-19 06:51:02 +02:00
										 |  |  | # A requirement on Linux. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # @api private | 
					
						
							| 
									
										
										
										
											2017-02-25 10:17:25 -08:00
										 |  |  | class LinuxRequirement < Requirement | 
					
						
							| 
									
										
										
										
											2020-10-20 12:03:48 +02:00
										 |  |  |   extend T::Sig | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-25 10:17:25 -08:00
										 |  |  |   fatal true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   satisfy(build_env: false) { OS.linux? } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-20 12:03:48 +02:00
										 |  |  |   sig { returns(String) } | 
					
						
							| 
									
										
										
										
											2017-02-25 10:17:25 -08:00
										 |  |  |   def message | 
					
						
							| 
									
										
										
										
											2020-11-01 12:26:18 -05:00
										 |  |  |     "Linux is required for this software." | 
					
						
							| 
									
										
										
										
											2017-02-25 10:17:25 -08:00
										 |  |  |   end | 
					
						
							|  |  |  | end |