spsclient_m2m 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/spsclient_m2m.rb +8 -10
- metadata +26 -26
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c156927091787b6932f787b933a873a9025fcf8f
|
4
|
+
data.tar.gz: bc75020e3c4ca504781ad33fa827bcb03e603c4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb35e5f9ce4943977186ff11f5b098725ac422e3ec960777b070de16dc5de7306bc6493cd21167a63723f98857580fb27a9a4033190e2a35ef97ea629af09536
|
7
|
+
data.tar.gz: d8dd43ce3e13e77a30b2d026c548ad2b2a40a0c3150b6425633e421e48dceebadb0e3ecf2673d5208dfd4b30322c5ddd7addf03af38847fcc7ec229242251e91
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/spsclient_m2m.rb
CHANGED
@@ -10,24 +10,23 @@ require 'websocket-eventmachine-client'
|
|
10
10
|
|
11
11
|
class SPSClientM2M
|
12
12
|
|
13
|
-
def initialize(
|
13
|
+
def initialize(rsc, reg, sps_keywords_url, px_url, logfile: nil, \
|
14
14
|
sps: {host: 'sps', port: '59000'})
|
15
15
|
|
16
|
+
@rsc = rsc
|
16
17
|
@log = Logger.new(logfile,'daily') if logfile
|
17
|
-
|
18
|
+
|
18
19
|
@sps_address = "%s:%s" % [sps[:host], sps[:port]]
|
19
20
|
|
20
|
-
reg = @rws.services['registry']
|
21
|
-
|
22
21
|
px = Polyrex.new px_url
|
23
|
-
|
22
|
+
|
24
23
|
@ste = SPSTriggerExecute.new sps_keywords_url, reg, px
|
25
24
|
|
26
25
|
end
|
27
26
|
|
28
27
|
def run()
|
29
|
-
|
30
|
-
|
28
|
+
|
29
|
+
rsc = @rsc
|
31
30
|
ste = @ste
|
32
31
|
sps_address = @sps_address
|
33
32
|
|
@@ -63,7 +62,7 @@ class SPSClientM2M
|
|
63
62
|
package = package_path[/([^\/]+)\.rsf$/,1]
|
64
63
|
|
65
64
|
log "job: %s path: %s package: %s" % [job, package_path, package]
|
66
|
-
|
65
|
+
rsc.run_job package, job, {}, args=x, package_path: package_path
|
67
66
|
},
|
68
67
|
sps: ->(x){ ws.send x },
|
69
68
|
ste: ->(x){ ste.run x }
|
@@ -71,7 +70,6 @@ class SPSClientM2M
|
|
71
70
|
|
72
71
|
end
|
73
72
|
|
74
|
-
|
75
73
|
EM.defer { a.each {|type, x| h[type].call x} }
|
76
74
|
end
|
77
75
|
|
@@ -98,4 +96,4 @@ class SPSClientM2M
|
|
98
96
|
def log(s)
|
99
97
|
@log.debug(s) if @log
|
100
98
|
end
|
101
|
-
end
|
99
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spsclient_m2m
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE2MDQyNjE5MzgxMFoXDTE3MDQyNjE5MzgxMFowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2Jlcn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QHvPXrKuG
|
30
|
+
fa7QXsvmGx0F/LB+8csio2JXYCH71wUIh7uj9gt58dZFNMei2sK8PptCNusG/yNd
|
31
|
+
9PUm89FQvfRnzWxLuS4+ZXMo8Zo4MQHDdOuNAQpSDGVy1GIHrNU04foP5Bd86hc0
|
32
|
+
78GKZWkTxeiOTA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2016-04-26 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: polyrex
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
version: '1.0'
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.
|
45
|
+
version: 1.1.1
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -52,27 +52,27 @@ dependencies:
|
|
52
52
|
version: '1.0'
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.
|
55
|
+
version: 1.1.1
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: spstrigger_execute
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '0.
|
62
|
+
version: '0.4'
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: 0.
|
65
|
+
version: 0.4.6
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
70
|
- - "~>"
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: '0.
|
72
|
+
version: '0.4'
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.4.6
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: websocket-eventmachine-client
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,9 +120,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.4.8
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
|
-
summary: The SPSClient_M2M gem is designed to run as a service
|
127
|
-
gem
|
126
|
+
summary: The SPSClient_M2M gem is designed to run as a service with the RSF_Services
|
127
|
+
gem and the dws-registry gem or the remote_dwsregistry gem.
|
128
128
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|