Class: TuntapRequirement

Inherits:
Requirement show all
Defined in:
Library/Homebrew/requirements/tuntap_requirement.rb

Constant Summary

Constants included from Dependable

Dependable::RESERVED_TAGS

Instance Attribute Summary

Attributes inherited from Requirement

#cask, #download, #name, #tags

Class Method Summary collapse

Methods inherited from Requirement

#==, default_formula, #display_s, #env, env, #env_proc, expand, #fatal?, #hash, #initialize, #inspect, #message, #modify_build_environment, #option_names, prune, prune?, #satisfied?, #satisfied_result_parent, satisfy

Methods included from BuildEnvironment::DSL

#env

Methods included from Dependable

#build?, #option_tags, #optional?, #options, #recommended?, #required?, #run?

Constructor Details

This class inherits a constructor from Requirement

Class Method Details

.binary_tuntap_installed?Boolean

Returns:

  • (Boolean)


8
9
10
11
12
13
14
15
# File 'Library/Homebrew/requirements/tuntap_requirement.rb', line 8

def self.binary_tuntap_installed?
  %w[
    /Library/Extensions/tun.kext
    /Library/Extensions/tap.kext
    /Library/LaunchDaemons/net.sf.tuntaposx.tun.plist
    /Library/LaunchDaemons/net.sf.tuntaposx.tap.plist
  ].all? { |file| File.exist?(file) }
end