Class: RubyGemsRequirementsSystem::Platform::FreeBSD

Inherits:
Base
  • Object
show all
Defined in:
lib/rubygems-requirements-system/platform/freebsd.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#default_system_packages, #install

Class Method Details

.current_platform?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/rubygems-requirements-system/platform/freebsd.rb', line 24

def current_platform?
  ExecutableFinder.exist?("pkg")
end

Instance Method Details

#target?(platform) ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/rubygems-requirements-system/platform/freebsd.rb', line 29

def target?(platform)
  platform == "freebsd"
end