Sha256: 95a3fc18da208186e2e8575c6751caf379cb493483bf4a02d1d524365eb7134c

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 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'

client = IronWorkerNG::Client.new

code = IronWorkerNG::Code::Ruby.new do
  exec 'ng_tests_worker.rb'
  gemfile 'Gemfile'
  gemfile 'test/Gemfile'
  dir '.', 'iwng'
end

puts client.codes.create(code)

puts code.create_zip

task = client.tasks.create 'NgTestsWorker'

client.tasks.wait_for task.id

puts '-' * 80

puts client.tasks.log(task.id)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iron_worker_ng-0.5.1 remote_test.rb