brew/Library/Homebrew/requirements/linux_requirement.rb

15 lines
260 B
Ruby
Raw Permalink Normal View History

2020-11-25 17:03:23 +01:00
# typed: strict
# frozen_string_literal: true
2020-08-19 06:51:02 +02:00
# A requirement on Linux.
2017-02-25 10:17:25 -08:00
class LinuxRequirement < Requirement
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
"Linux is required for this software."
2017-02-25 10:17:25 -08:00
end
end