Method: DeepTest::Distributed::TestServer#sync

Defined in:
lib/deep_test/distributed/test_server.rb

#sync(options) ⇒ Object



29
30
31
32
33
34
# File 'lib/deep_test/distributed/test_server.rb', line 29

def sync(options)
  DeepTest.logger.debug "mirror sync for #{options.origin_hostname}"
  path = options.mirror_path(@config[:work_dir])
  DeepTest.logger.debug "Syncing #{options.sync_options[:source]} to #{path}"
  RSync.sync(DRbClientConnectionInfo.new, options, path)
end