class Nitra::Slave::Server
Attributes
channel[R]
Public Instance Methods
run()
click to toggle source
# File lib/nitra/slave.rb, line 67 def run @channel = Nitra::Channel.new($stdin, $stdout) response = @channel.read unless response && response["command"] == "configuration" puts "handshake failed" exit 1 end @channel.write("command" => "connected") runner = Nitra::Runner.new(response["configuration"], channel, response["runner_id"]) runner.run end