tem_multi_proxy 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/README +6 -1
- data/Rakefile +2 -1
- data/bin/tem_multi_proxy_query +5 -1
- data/lib/tem_multi_proxy/client.rb +2 -0
- data/tem_multi_proxy.gemspec +5 -2
- metadata +12 -2
data/CHANGELOG
CHANGED
data/README
CHANGED
@@ -6,4 +6,9 @@ if they die.
|
|
6
6
|
The utility's intended use is for TEM clusters (systems with multiple TEMs
|
7
7
|
attached), where the TEM's auto-configuration mechanism wouldn't allow access to
|
8
8
|
all the TEMs.
|
9
|
-
|
9
|
+
|
10
|
+
Note on testing: since the proxy is entirely event-driven, testing it would be
|
11
|
+
a pain, or I don't know how to do it easily yet. Therefore I'm not going to
|
12
|
+
write complex tests for 200 lines of code that I don't expect to change ever
|
13
|
+
again. Contributions are welcome though :)
|
14
|
+
|
data/Rakefile
CHANGED
@@ -10,7 +10,8 @@ Echoe.new('tem_multi_proxy') do |p|
|
|
10
10
|
p.email = 'victor@costan.us'
|
11
11
|
p.summary = 'Maintains TEM proxies for all the physically attached TEMs.'
|
12
12
|
p.url = 'http://tem.rubyforge.org'
|
13
|
-
p.dependencies = ['
|
13
|
+
p.dependencies = ['eventmachine >=0.12.8',
|
14
|
+
'rbtree >=0.2.1',
|
14
15
|
'smartcard >=0.3.1',
|
15
16
|
'tem_ruby >=0.11',
|
16
17
|
'zerg_support >=0.0.9']
|
data/bin/tem_multi_proxy_query
CHANGED
@@ -6,4 +6,8 @@ require 'tem_multi_proxy'
|
|
6
6
|
server_addr = ARGV[0] || 'localhost'
|
7
7
|
print "Querying #{server_addr}...\n"
|
8
8
|
tem_transports = Tem::MultiProxy::Client.query_tems server_addr
|
9
|
-
|
9
|
+
if tem_transports
|
10
|
+
print tem_transports.inspect, "\n"
|
11
|
+
else
|
12
|
+
print "Unable to connect to tem_multi_proxy server\n"
|
13
|
+
end
|
@@ -13,6 +13,8 @@ class Client
|
|
13
13
|
@client_socket = SocketFactory.socket :out_addr => server_addr,
|
14
14
|
:out_port => Server::DEFAULT_PORT,
|
15
15
|
:no_delay => true
|
16
|
+
return nil unless @client_socket
|
17
|
+
|
16
18
|
@client_socket.extend Adapter
|
17
19
|
@client_socket.send_object :query => 'tem_ports'
|
18
20
|
tem_ports = @client_socket.recv_object
|
data/tem_multi_proxy.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{tem_multi_proxy}
|
5
|
-
s.version = "0.2"
|
5
|
+
s.version = "0.2.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Victor Costan"]
|
9
|
-
s.date = %q{2009-06-
|
9
|
+
s.date = %q{2009-06-04}
|
10
10
|
s.description = %q{Maintains TEM proxies for all the physically attached TEMs.}
|
11
11
|
s.email = %q{victor@costan.us}
|
12
12
|
s.executables = ["tem_multi_proxy", "tem_multi_proxy_query"]
|
@@ -24,17 +24,20 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.specification_version = 3
|
25
25
|
|
26
26
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
27
|
+
s.add_runtime_dependency(%q<eventmachine>, [">= 0.12.8"])
|
27
28
|
s.add_runtime_dependency(%q<rbtree>, [">= 0.2.1"])
|
28
29
|
s.add_runtime_dependency(%q<smartcard>, [">= 0.3.1"])
|
29
30
|
s.add_runtime_dependency(%q<tem_ruby>, [">= 0.11"])
|
30
31
|
s.add_runtime_dependency(%q<zerg_support>, [">= 0.0.9"])
|
31
32
|
else
|
33
|
+
s.add_dependency(%q<eventmachine>, [">= 0.12.8"])
|
32
34
|
s.add_dependency(%q<rbtree>, [">= 0.2.1"])
|
33
35
|
s.add_dependency(%q<smartcard>, [">= 0.3.1"])
|
34
36
|
s.add_dependency(%q<tem_ruby>, [">= 0.11"])
|
35
37
|
s.add_dependency(%q<zerg_support>, [">= 0.0.9"])
|
36
38
|
end
|
37
39
|
else
|
40
|
+
s.add_dependency(%q<eventmachine>, [">= 0.12.8"])
|
38
41
|
s.add_dependency(%q<rbtree>, [">= 0.2.1"])
|
39
42
|
s.add_dependency(%q<smartcard>, [">= 0.3.1"])
|
40
43
|
s.add_dependency(%q<tem_ruby>, [">= 0.11"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tem_multi_proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Costan
|
@@ -9,9 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-04 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: eventmachine
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.12.8
|
24
|
+
version:
|
15
25
|
- !ruby/object:Gem::Dependency
|
16
26
|
name: rbtree
|
17
27
|
type: :runtime
|