module Uh::WM::Workers

Constants

FACTORIES

Public Class Methods

build(type, **options) click to toggle source
# File lib/uh/wm/workers.rb, line 19
def build type, **options
  (FACTORIES[type] or fail ArgumentError, "unknown worker: `#{type}'")
    .call options
end
type?(type) click to toggle source
# File lib/uh/wm/workers.rb, line 15
def type? type
  FACTORIES.key? type
end
types() click to toggle source
# File lib/uh/wm/workers.rb, line 11
def types
  FACTORIES.keys
end