Class: SmartProxyDynflowCore::TaskLauncherRegistry

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

Class Method Summary collapse

Class Method Details

.fetch(name, default = nil) ⇒ Object



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

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

.key?(name) ⇒ Boolean



17
18
19
# File 'lib/smart_proxy_dynflow_core/task_launcher_registry.rb', line 17

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

.operationsObject



21
22
23
# File 'lib/smart_proxy_dynflow_core/task_launcher_registry.rb', line 21

def operations
  registry.keys
end

.register(name, launcher) ⇒ Object



5
6
7
# File 'lib/smart_proxy_dynflow_core/task_launcher_registry.rb', line 5

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