module NativePackageInstaller::Platform

Constants

PLATFORM_CLASSES

Public Class Methods

detect() click to toggle source
# File lib/native-package-installer/platform.rb, line 25
def detect
  PLATFORM_CLASSES.reverse_each do |platform_class|
    return platform_class.new if platform_class.current_platform?
  end
  Unknown.new
end
register(platform_class) click to toggle source
# File lib/native-package-installer/platform.rb, line 21
def register(platform_class)
  PLATFORM_CLASSES << platform_class
end