ESL-77 your test script works along with single_command.rb now

This commit is contained in:
Brian West
2014-02-24 04:12:55 -06:00
parent e2d7bb417b
commit d97b163fd3
3 changed files with 227 additions and 181 deletions

View File

@@ -1,8 +1,14 @@
#! /usr/bin/ruby
require_relative './ESL'
require "ESL"
HOST = '127.0.0.1'.to_s
PORT = '8021'.to_s
PASSWORD = 'ClueCon'.to_s
command = ARGV.join(" ")
con = ESL::ESLconnection.new("localhost", "8021", "ClueCon")
e = con.sendRecv("api #{command}")
puts e.getBody()
con = ESL::ESLconnection.new(HOST,PORT,PASSWORD)
e = con.sendRecv('api ' + command)
puts e.getBody