Class: Kiqchestra::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/kiqchestra/config.rb

Overview

The Config class provides a configuration object for Kiqchestra, allowing users to customize various aspects of the library’s behavior.

By default, it initializes with a DefaultWorkflowStore instance for managing workflow storage (dependencies, progress, etc.). Users can override this with a custom store by setting the ‘workflow_store` attribute.

Attributes:

  • ‘workflow_store`: The object responsible for storing workflow-related data. Defaults to an instance of `DefaultWorkflowStore`.

Example Usage:

Kiqchestra.configure do |config|
  config.store = MyCustomWorkflowStore.new
end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



24
25
26
# File 'lib/kiqchestra/config.rb', line 24

def initialize
  @store = DefaultWorkflowStore.new
end

Instance Attribute Details

#storeObject

Returns the value of attribute store.



22
23
24
# File 'lib/kiqchestra/config.rb', line 22

def store
  @store
end