This commit is contained in:
Charles Care
2019-10-07 21:55:51 +01:00
parent d3831d4772
commit a24ff8b80a
3 changed files with 10 additions and 10 deletions

View File

@@ -7,13 +7,9 @@ pipeline = PipelineClient.new
# return
lang = ARGV[0] || "ruby"
lang = "ruby"
# pipeline.build_test_runner(lang)
# pipeline.release_latest(lang)
# exit
r = pipeline.analyze(lang, "two-fer", "soln-42", "s3://exercism-dev/iterations/fff07700-e1c3-402d-8937-823aeefb159f")
puts r
# puts r
if r["logs"]
r["logs"].each do |log_line|
puts "+ #{log_line["cmd"]}"
@@ -23,3 +19,5 @@ if r["logs"]
end
puts r["result"]
pipeline.close_socket

View File

@@ -4,7 +4,8 @@ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "pipeline"
env_base = ARGV[0]
worker_identity = ARGV[0]
env_base = ARGV[1]
server = Pipeline::Rpc::Worker.new(env_base)
server = Pipeline::Rpc::Worker.new(worker_identity, env_base)
server.listen