Class: Roast::CogInputManager

Inherits:
Object
  • Object
show all
Defined in:
lib/roast/cog_input_manager.rb

Overview

Context in which an individual cog block within the ‘execute` block of a workflow is evaluated

Defined Under Namespace

Classes: CogDoesNotExistError, CogFailedError, CogNotYetRunError, CogOutputAccessError, CogSkippedError, CogStoppedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cog_registry, cogs, workflow_context) ⇒ CogInputManager

: (Cog::Registry, Cog::Store, WorkflowContext) -> void



20
21
22
23
24
25
26
27
# File 'lib/roast/cog_input_manager.rb', line 20

def initialize(cog_registry, cogs, workflow_context)
  @cog_registry = cog_registry
  @cogs = cogs
  @workflow_context = workflow_context
  @context = CogInputContext.new
  bind_registered_cogs
  bind_workflow_context
end

Instance Attribute Details

#contextObject (readonly)

: CogInputContext



30
31
32
# File 'lib/roast/cog_input_manager.rb', line 30

def context
  @context
end