Sha256: 93e765f31251695e8fa4c801e16b6fdf947bc85be77aa291a416d3d727c27bcb
Contents?: true
Size: 779 Bytes
Versions: 2
Compression:
Stored size: 779 Bytes
Contents
require 'bundler' require 'tmpdir' tmpdir = Dir.mktmpdir File.open(tmpdir + '/Gemfile', 'w') do |f| f << File.read('Gemfile') f << File.read('test/Gemfile') end Dir.chdir tmpdir do Bundler.setup end $LOAD_PATH.unshift 'lib' require 'iron_worker_ng' require_relative 'test/iron_io_config.rb' client = IronWorkerNG::Client.new code = IronWorkerNG::Code::Ruby.new do exec 'ng_tests_worker.rb' gemfile 'Gemfile' gemfile 'test/Gemfile' Dir.glob('*').each do |p| dir p, 'iwng' if Dir.exist? p file p, 'iwng' if File.exist? p end iron_io_config 'iwng' end puts client.codes.create(code) puts code.create_zip task = client.tasks.create 'NgTestsWorker', args: $*.join(' ') client.tasks.wait_for task.id puts '-' * 80 puts client.tasks.log(task.id)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
iron_worker_ng-0.6.2 | remote_test.rb |
iron_worker_ng-0.6.1 | remote_test.rb |