Class: CircleCI::Parallel::Configuration::SlaveNodeConfiguration
- Inherits:
-
Object
- Object
- CircleCI::Parallel::Configuration::SlaveNodeConfiguration
- Defined in:
- lib/circleci/parallel/configuration/slave_node_configuration.rb
Instance Attribute Summary collapse
- #after_sync_hook ⇒ Object readonly private
- #before_sync_hook ⇒ Object readonly private
Instance Method Summary collapse
-
#after_sync(chdir: true) {|local_data_dir| ... }
Defines a callback that will be invoked on each slave node after syncing all nodes.
-
#before_sync(chdir: true) {|local_data_dir| ... }
Defines a callback that will be invoked on each slave node before syncing all nodes.
-
#initialize ⇒ SlaveNodeConfiguration
constructor
private
A new instance of SlaveNodeConfiguration.
Constructor Details
#initialize ⇒ SlaveNodeConfiguration
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SlaveNodeConfiguration.
11 12 13 |
# File 'lib/circleci/parallel/configuration/slave_node_configuration.rb', line 11 def initialize @before_sync_hook = @after_sync_hook = Hook.new end |
Instance Attribute Details
#after_sync_hook ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/circleci/parallel/configuration/slave_node_configuration.rb', line 8 def after_sync_hook @after_sync_hook end |
#before_sync_hook ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/circleci/parallel/configuration/slave_node_configuration.rb', line 8 def before_sync_hook @before_sync_hook end |
Instance Method Details
#after_sync(chdir: true) {|local_data_dir| ... }
This method returns an undefined value.
Defines a callback that will be invoked on each slave node after syncing all nodes.
53 54 55 |
# File 'lib/circleci/parallel/configuration/slave_node_configuration.rb', line 53 def after_sync(chdir: true, &block) @after_sync_hook = Hook.new(block, chdir) end |
#before_sync(chdir: true) {|local_data_dir| ... }
This method returns an undefined value.
Defines a callback that will be invoked on each slave node before syncing all nodes.
32 33 34 |
# File 'lib/circleci/parallel/configuration/slave_node_configuration.rb', line 32 def before_sync(chdir: true, &block) @before_sync_hook = Hook.new(block, chdir) end |