Class: Proxy::Dynflow::TaskLauncherRegistry

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_proxy_dynflow/task_launcher_registry.rb

Class Method Summary collapse

Class Method Details

.fetch(name, default = nil) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/smart_proxy_dynflow/task_launcher_registry.rb', line 10

def fetch(name, default = nil)
  if default.nil?
    registry.fetch(name)
  else
    registry.fetch(name, default)
  end
end

.key?(name) ⇒ Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/smart_proxy_dynflow/task_launcher_registry.rb', line 18

def key?(name)
  registry.key?(name)
end

.operationsObject



22
23
24
# File 'lib/smart_proxy_dynflow/task_launcher_registry.rb', line 22

def operations
  registry.keys
end

.register(name, launcher) ⇒ Object



6
7
8
# File 'lib/smart_proxy_dynflow/task_launcher_registry.rb', line 6

def register(name, launcher)
  registry[name] = launcher
end