Class: CircleCI::Parallel::Configuration
- Inherits:
-
Object
- Object
- CircleCI::Parallel::Configuration
- Defined in:
- lib/circleci/parallel/configuration.rb
Instance Attribute Summary collapse
- #after_download_hook ⇒ Object readonly private
- #after_join_hook ⇒ Object readonly private
- #before_join_hook ⇒ Object readonly private
-
#silent ⇒ Boolean
Whether progress messages should be outputted to STDOUT (default: false).
Instance Method Summary collapse
-
#after_download(chdir: true) {|download_data_dir| ... }
Defines a callback that will be invoked only on the master node after downloading all data from slave nodes.
-
#after_join(chdir: true) {|local_data_dir| ... }
Defines a callback that will be invoked on all nodes after joining nodes.
-
#before_join(chdir: true) {|local_data_dir| ... }
Defines a callback that will be invoked on all nodes before joining nodes.
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 |
# File 'lib/circleci/parallel/configuration.rb', line 12 def initialize @silent = false @before_join_hook = @after_join_hook = @after_download_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.
10 11 12 |
# File 'lib/circleci/parallel/configuration.rb', line 10 def after_download_hook @after_download_hook end |
#after_join_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.
10 11 12 |
# File 'lib/circleci/parallel/configuration.rb', line 10 def after_join_hook @after_join_hook end |
#before_join_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.
10 11 12 |
# File 'lib/circleci/parallel/configuration.rb', line 10 def before_join_hook @before_join_hook end |
#silent ⇒ Boolean
Returns whether progress messages should be outputted to STDOUT (default: false).
7 8 9 |
# File 'lib/circleci/parallel/configuration.rb', line 7 def silent @silent end |
Instance Method Details
#after_download(chdir: true) {|download_data_dir| ... }
This method returns an undefined value.
Defines a callback that will be invoked only on the master node after downloading all data from slave nodes.
83 84 85 |
# File 'lib/circleci/parallel/configuration.rb', line 83 def after_download(chdir: true, &block) @after_download_hook = Hook.new(block, chdir) end |
#after_join(chdir: true) {|local_data_dir| ... }
This method returns an undefined value.
Defines a callback that will be invoked on all nodes after joining nodes.
55 56 57 |
# File 'lib/circleci/parallel/configuration.rb', line 55 def after_join(chdir: true, &block) @after_join_hook = Hook.new(block, chdir) end |
#before_join(chdir: true) {|local_data_dir| ... }
This method returns an undefined value.
Defines a callback that will be invoked on all nodes before joining nodes.
34 35 36 |
# File 'lib/circleci/parallel/configuration.rb', line 34 def before_join(chdir: true, &block) @before_join_hook = Hook.new(block, chdir) end |