Method: Tasker::Configuration#engine

Defined in:
lib/tasker/configuration.rb

#engine {|ConfigurationProxy| ... } ⇒ Tasker::Types::EngineConfig

Configure core engine settings

Yields:

Returns:



186
187
188
189
190
191
192
193
194
195
# File 'lib/tasker/configuration.rb', line 186

def engine
  if block_given?
    # For block configuration, we need to create a new instance with the block's values
    current_values = @engine_config.to_h
    yield_config = ConfigurationProxy.new(current_values)
    yield(yield_config)
    @engine_config = Tasker::Types::EngineConfig.new(yield_config.to_h)
  end
  @engine_config
end