Class: Entangler::Executor::Slave

Inherits:
Base
  • Object
show all
Defined in:
lib/entangler/executor/slave.rb

Constant Summary

Constants inherited from Base

Base::ENTANGLER_IGNORE_REGEX, Base::GIT_IGNORE_REGEX

Instance Attribute Summary

Attributes inherited from Base

#base_dir

Instance Method Summary collapse

Methods inherited from Base

#generate_abs_path, #run, #strip_base_path

Constructor Details

#initialize(base_dir, opts = {}) ⇒ Slave

Returns a new instance of Slave.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/entangler/executor/slave.rb', line 6

def initialize(base_dir, opts = {})
  super(base_dir, opts)
  $stdin.binmode
  $stdout.binmode
  $stdin.sync = true
  $stdout.sync = true

  @remote_reader = $stdin
  @remote_writer = $stdout
  $stderr.reopen(File.join(Entangler::Logger.log_file_path(base_dir, 'entangler.err')), 'a')
end