Class: RubyGemsRequirementsSystem::Platform::MacPorts

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#default_system_packages, #initialize, #install, #valid_system_package?, #valid_system_repository?

Constructor Details

This class inherits a constructor from RubyGemsRequirementsSystem::Platform::Base

Class Method Details

.current_platform?Boolean



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

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

Instance Method Details

#target?(platform) ⇒ Boolean



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

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