Class: CircleCI::Parallel::Configuration::MasterNodeConfiguration
- Inherits:
-
Object
- Object
- CircleCI::Parallel::Configuration::MasterNodeConfiguration
- Defined in:
- lib/circleci/parallel/configuration/master_node_configuration.rb
Instance Attribute Summary collapse
- #after_download_hook ⇒ Object readonly private
- #after_sync_hook ⇒ Object readonly private
- #before_download_hook ⇒ Object readonly private
- #before_sync_hook ⇒ Object readonly private
Instance Method Summary collapse
-
#after_download(chdir: true) {|download_data_dir| ... }
Defines a callback that will be invoked on the master node after downloading all data from slave nodes.
-
#after_sync(chdir: true) {|local_data_dir| ... }
Defines a callback that will be invoked on the master node after syncing all nodes.
-
#before_download(chdir: true) {|download_data_dir| ... }
Defines a callback that will be invoked on the master node before downloading all data from slave nodes.
-
#before_sync(chdir: true) {|local_data_dir| ... }
Defines a callback that will be invoked on the master node before syncing all nodes.
-
#initialize ⇒ MasterNodeConfiguration
constructor
private
A new instance of MasterNodeConfiguration.
Constructor Details
#initialize ⇒ MasterNodeConfiguration
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 MasterNodeConfiguration.
11 12 13 |
# File 'lib/circleci/parallel/configuration/master_node_configuration.rb', line 11 def initialize @before_sync_hook = @before_download_hook = @after_download_hook = @after_sync_hook = Hook.new end |
Instance Attribute Details
#after_download_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/master_node_configuration.rb', line 8 def after_download_hook @after_download_hook end |
#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/master_node_configuration.rb', line 8 def after_sync_hook @after_sync_hook end |
#before_download_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/master_node_configuration.rb', line 8 def before_download_hook @before_download_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/master_node_configuration.rb', line 8 def before_sync_hook @before_sync_hook end |
Instance Method Details
#after_download(chdir: true) {|download_data_dir| ... }
This method returns an undefined value.
Defines a callback that will be invoked on the master node after downloading all data from slave nodes.
75 76 77 |
# File 'lib/circleci/parallel/configuration/master_node_configuration.rb', line 75 def after_download(chdir: true, &block) @after_download_hook = Hook.new(block, chdir) end |
#after_sync(chdir: true) {|local_data_dir| ... }
This method returns an undefined value.
Defines a callback that will be invoked on the master node after syncing all nodes.
96 97 98 |
# File 'lib/circleci/parallel/configuration/master_node_configuration.rb', line 96 def after_sync(chdir: true, &block) @after_sync_hook = Hook.new(block, chdir) end |
#before_download(chdir: true) {|download_data_dir| ... }
This method returns an undefined value.
Defines a callback that will be invoked on the master node before downloading all data from slave nodes.
47 48 49 |
# File 'lib/circleci/parallel/configuration/master_node_configuration.rb', line 47 def before_download(chdir: true, &block) @before_download_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 the master node before syncing all nodes.
32 33 34 |
# File 'lib/circleci/parallel/configuration/master_node_configuration.rb', line 32 def before_sync(chdir: true, &block) @before_sync_hook = Hook.new(block, chdir) end |