Module: Train::Platforms::Detect

Defined in:
lib/train/platforms/detect.rb,
lib/train/platforms/detect/uuid.rb,
lib/train/platforms/detect/scanner.rb

Defined Under Namespace

Modules: Helpers, Specifications Classes: Scanner, UUID

Class Method Summary collapse

Class Method Details

.scan(backend) ⇒ Object

Main detect method to scan all platforms for a match

Returns:

  • Train::Platform instance or error if none found



8
9
10
# File 'lib/train/platforms/detect.rb', line 8

def self.scan(backend)
  Scanner.new(backend).scan
end