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
-
#mock_mode ⇒ Boolean
Whether mock mode is enabled (default: false).
-
#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.
15 16 17 18 19 |
# File 'lib/circleci/parallel/configuration.rb', line 15 def initialize @silent = false @mock_mode = 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.
13 14 15 |
# File 'lib/circleci/parallel/configuration.rb', line 13 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.
13 14 15 |
# File 'lib/circleci/parallel/configuration.rb', line 13 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.
13 14 15 |
# File 'lib/circleci/parallel/configuration.rb', line 13 def before_join_hook @before_join_hook end |
#mock_mode ⇒ Boolean
Returns whether mock mode is enabled (default: false).
10 11 12 |
# File 'lib/circleci/parallel/configuration.rb', line 10 def mock_mode @mock_mode 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.
87 88 89 |
# File 'lib/circleci/parallel/configuration.rb', line 87 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.
59 60 61 |
# File 'lib/circleci/parallel/configuration.rb', line 59 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.
38 39 40 |
# File 'lib/circleci/parallel/configuration.rb', line 38 def before_join(chdir: true, &block) @before_join_hook = Hook.new(block, chdir) end |