Class: RubyGemsRequirementsSystem::Platform::AmazonLinux2
- Inherits:
-
RedHatEnterpriseLinux
- Object
- Base
- Fedora
- RedHatEnterpriseLinux
- RubyGemsRequirementsSystem::Platform::AmazonLinux2
- Defined in:
- lib/rubygems-requirements-system/platform/amazon-linux-2.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Fedora
#default_system_packages, #valid_system_package?, #valid_system_repository?
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 27 |
# File 'lib/rubygems-requirements-system/platform/amazon-linux-2.rb', line 24 def current_platform? os_release = OSRelease.new os_release.id == "amzn" and os_release.version == "2" end |
Instance Method Details
#target?(platform) ⇒ Boolean
30 31 32 33 34 35 36 37 |
# File 'lib/rubygems-requirements-system/platform/amazon-linux-2.rb', line 30 def target?(platform) case platform when "amazon_linux_2", "amazon_linux" true else super end end |