Class: TDL::QueueBasedImplementationRunnerBuilder
- Inherits:
-
Object
- Object
- TDL::QueueBasedImplementationRunnerBuilder
- Defined in:
- lib/tdl/queue/queue_based_implementation_runner_builder.rb
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize ⇒ QueueBasedImplementationRunnerBuilder
constructor
A new instance of QueueBasedImplementationRunnerBuilder.
- #set_config(config) ⇒ Object
- #with_solution_for(method_name, user_implementation) ⇒ Object
Constructor Details
#initialize ⇒ QueueBasedImplementationRunnerBuilder
Returns a new instance of QueueBasedImplementationRunnerBuilder.
7 8 9 |
# File 'lib/tdl/queue/queue_based_implementation_runner_builder.rb', line 7 def initialize @deploy_processing_rules = create_deploy_processing_rules() end |
Instance Method Details
#create ⇒ Object
24 25 26 |
# File 'lib/tdl/queue/queue_based_implementation_runner_builder.rb', line 24 def create QueueBasedImplementationRunner.new(@config, @deploy_processing_rules) end |
#set_config(config) ⇒ Object
11 12 13 14 |
# File 'lib/tdl/queue/queue_based_implementation_runner_builder.rb', line 11 def set_config(config) @config = config self end |
#with_solution_for(method_name, user_implementation) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/tdl/queue/queue_based_implementation_runner_builder.rb', line 16 def with_solution_for(method_name, user_implementation) @deploy_processing_rules .on(method_name) .call(user_implementation) .build() self end |