Class: CircleCI::Parallel::Task::Slave Private

Inherits:
Base
  • Object
show all
Defined in:
lib/circleci/parallel/task/slave.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

MockSlave

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
# File 'lib/circleci/parallel/task/slave.rb', line 8

def run
  create_node_data_dir
  configuration.before_join_hook.call(node.data_dir)
  mark_as_joining
  wait_for_master_node_to_download
  configuration.after_join_hook.call(node.data_dir)
  done
end