class Entangler::Executor::Slave

Public Class Methods

new(base_dir, opts = {}) click to toggle source
Calls superclass method Entangler::Executor::Base::new
# 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')), 'w')
end