Class: CircleCI::Parallel::Task::Master Private

Inherits:
Base
  • Object
show all
Defined in:
lib/circleci/parallel/task/master.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Direct Known Subclasses

MockMaster

Defined Under Namespace

Classes: Downloader

Instance Attribute Summary

Attributes inherited from Base

#configuration, #node

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from CircleCI::Parallel::Task::Base

Instance Method Details

#runObject

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
11
12
13
14
15
16
# File 'lib/circleci/parallel/task/master.rb', line 8

def run
  create_node_data_dir
  configuration.before_join_hook.call(node.data_dir)
  mark_as_joining
  download_from_slave_nodes
  configuration.after_download_hook.call(BASE_DATA_DIR)
  configuration.after_join_hook.call(node.data_dir)
  done
end