cpee-instantiation 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cpee-instantiation.gemspec +1 -1
- data/lib/cpee-instantiation/instantiation.rb +14 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa7ec4be09e6574d2b06d3f63119403dd07d1bfd1f5c91b74e070a0168a73c92
|
4
|
+
data.tar.gz: 5557f2f30a55365b9ffe235cf025ed4c90bddfaa72d5a125da419b89eed83772
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 934220dc9cd7953028f9ec8c32fc77046380eb54a8ca6d5566e40a0450c4045a3a101a8cf14f988ddeb5e1d068a0a6945333d63c02d053c02c3fcb7383267401
|
7
|
+
data.tar.gz: 55a39d02d5614c6a2cf1af1b59cc71b8e8544c002d28eb3de6da89bf3938d0f9c6a05e3db9b8f4c0b481067a0ca58e25929246674066cb2f4e084d8f254558dd
|
data/cpee-instantiation.gemspec
CHANGED
@@ -293,19 +293,29 @@ module CPEE
|
|
293
293
|
cblist = @a[2]
|
294
294
|
instance = @p[1].value
|
295
295
|
|
296
|
-
srv = Riddl::Client.new(cpee
|
297
|
-
res = srv.resource("/#{instance}/properties/attributes/uuid")
|
296
|
+
srv = Riddl::Client.new(cpee)
|
297
|
+
res = srv.resource("/#{instance}/properties/attributes/uuid/")
|
298
298
|
status, response = res.get
|
299
299
|
|
300
300
|
if status >= 200 && status < 300
|
301
|
-
uuid =
|
301
|
+
uuid = response.first.value
|
302
302
|
handle_data cpee, instance, @p[2]&.value
|
303
303
|
handle_waiting cpee, instance, uuid, @p[0].value, selfurl, cblist
|
304
304
|
handle_starting cpee, instance, @p[0].value
|
305
|
+
|
306
|
+
send = {
|
307
|
+
'CPEE-INSTANCE' => instance,
|
308
|
+
'CPEE-INSTANCE-URL' => File.join(cpee,instance),
|
309
|
+
'CPEE-INSTANCE-UUID' => uuid,
|
310
|
+
'CPEE-BEHAVIOR' => @p[0].value
|
311
|
+
}
|
312
|
+
|
305
313
|
if @p[0].value =~ /^wait/
|
306
314
|
@headers << Riddl::Header.new('CPEE-CALLBACK','true')
|
307
315
|
end
|
308
|
-
|
316
|
+
Riddl::Parameter::Complex.new('instance','application/json',JSON::generate(send))
|
317
|
+
else
|
318
|
+
@status = 500
|
309
319
|
end
|
310
320
|
end
|
311
321
|
end #}}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpee-instantiation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
8
8
|
autorequire:
|
9
9
|
bindir: tools
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: riddl
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
111
|
+
rubygems_version: 3.2.22
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Subprocess instantiation service for the cloud process execution engine (cpee.org)
|