ruby_aem 3.9.0 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/conf/gem.yaml +1 -1
- data/conf/spec.yaml +67 -57
- data/lib/ruby_aem/client.rb +1 -1
- data/lib/ruby_aem/error.rb +1 -1
- data/lib/ruby_aem/handlers/file.rb +1 -1
- data/lib/ruby_aem/handlers/html.rb +1 -1
- data/lib/ruby_aem/handlers/json.rb +1 -1
- data/lib/ruby_aem/handlers/simple.rb +1 -1
- data/lib/ruby_aem/handlers/xml.rb +1 -1
- data/lib/ruby_aem/resources/aem.rb +1 -1
- data/lib/ruby_aem/resources/aem_configmgr.rb +1 -1
- data/lib/ruby_aem/resources/authorizable_keystore.rb +3 -1
- data/lib/ruby_aem/resources/bundle.rb +27 -1
- data/lib/ruby_aem/resources/certificate.rb +1 -1
- data/lib/ruby_aem/resources/certificate_chain.rb +3 -1
- data/lib/ruby_aem/resources/config_property.rb +1 -1
- data/lib/ruby_aem/resources/flush_agent.rb +1 -1
- data/lib/ruby_aem/resources/group.rb +1 -1
- data/lib/ruby_aem/resources/node.rb +1 -1
- data/lib/ruby_aem/resources/outbox_replication_agent.rb +1 -1
- data/lib/ruby_aem/resources/package.rb +1 -1
- data/lib/ruby_aem/resources/path.rb +1 -1
- data/lib/ruby_aem/resources/replication_agent.rb +1 -1
- data/lib/ruby_aem/resources/repository.rb +1 -1
- data/lib/ruby_aem/resources/reverse_replication_agent.rb +1 -1
- data/lib/ruby_aem/resources/saml.rb +1 -1
- data/lib/ruby_aem/resources/ssl.rb +1 -1
- data/lib/ruby_aem/resources/truststore.rb +1 -1
- data/lib/ruby_aem/resources/user.rb +1 -1
- data/lib/ruby_aem/response.rb +1 -1
- data/lib/ruby_aem/result.rb +1 -1
- data/lib/ruby_aem/swagger.rb +1 -1
- data/lib/ruby_aem.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77cd630887d7b0e7cba6d66048d3311cc1fe7fcb
|
|
4
|
+
data.tar.gz: 9e6563f890d65b4b3d513e91eb5a9e69f596d822
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2846bdc56ea4d2decde0242a05359c5deb577ca57a5c95b1cec454fb7825d9c5c475a865c5898e86b5b3cd404a82e79bd7a880fd6026ec9702273eb5c939d091
|
|
7
|
+
data.tar.gz: 3b9f8ed3040c878c0497c8c0699efc56c7eba0c3f139369075061d5932342799331c0f781164165cde2d31c6c6b3a6033cc5fa0a9fbd603d6b8c4c9337d07641
|
data/conf/gem.yaml
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version: 3.
|
|
1
|
+
version: 3.12.0
|
data/conf/spec.yaml
CHANGED
|
@@ -228,6 +228,16 @@ bundle:
|
|
|
228
228
|
200:
|
|
229
229
|
handler: simple
|
|
230
230
|
message: 'Bundle %{name} stopped'
|
|
231
|
+
info:
|
|
232
|
+
api: console
|
|
233
|
+
operation: getBundleInfo
|
|
234
|
+
params:
|
|
235
|
+
required:
|
|
236
|
+
name: '%{name}'
|
|
237
|
+
responses:
|
|
238
|
+
200:
|
|
239
|
+
handler: simple_body
|
|
240
|
+
message: 'Retrieved bundle %{name} info'
|
|
231
241
|
aemconfigmgr:
|
|
232
242
|
actions:
|
|
233
243
|
get:
|
|
@@ -339,27 +349,27 @@ flushagent:
|
|
|
339
349
|
name: '%{name}'
|
|
340
350
|
optional:
|
|
341
351
|
jcrprimary_type: cq:Page
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
352
|
+
jcrcontent_cqname: '%{name}'
|
|
353
|
+
jcrcontent_jcrtitle: '%{title}'
|
|
354
|
+
jcrcontent_jcrdescription: '%{description}'
|
|
355
|
+
jcrcontent_slingresource_type: cq/replication/components/agent
|
|
356
|
+
jcrcontent_transport_uri: '%{dest_base_url}/dispatcher/invalidate.cache'
|
|
357
|
+
jcrcontent_log_level: '%{log_level}'
|
|
358
|
+
jcrcontent_no_versioning: true
|
|
359
|
+
jcrcontent_protocol_http_headers:
|
|
350
360
|
- 'CQ-Action:{action}'
|
|
351
361
|
- 'CQ-Handle:{path}'
|
|
352
362
|
- 'CQ-Path:{path}'
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
+
jcrcontent_protocol_http_headers_type_hint: String[]
|
|
364
|
+
jcrcontent_protocol_http_method: GET
|
|
365
|
+
jcrcontent_retry_delay: '%{retry_delay}'
|
|
366
|
+
jcrcontent_serialization_type: flush
|
|
367
|
+
jcrcontent_jcrmixin_types: cq:ReplicationStatus
|
|
368
|
+
jcrcontent_trigger_receive: true
|
|
369
|
+
jcrcontent_trigger_specific: true
|
|
370
|
+
jcrcontent_cqtemplate: /libs/cq/replication/templates/agent
|
|
371
|
+
jcrcontent_enabled: true
|
|
372
|
+
jcrcontent_ssl: '%{ssl}'
|
|
363
373
|
responses:
|
|
364
374
|
200:
|
|
365
375
|
handler: simple
|
|
@@ -418,7 +428,7 @@ group:
|
|
|
418
428
|
intermediate_path: '%{path}'
|
|
419
429
|
optional:
|
|
420
430
|
create_group: 'true'
|
|
421
|
-
|
|
431
|
+
profile_given_name: '%{name}'
|
|
422
432
|
responses:
|
|
423
433
|
201:
|
|
424
434
|
handler: html_authorizable_id
|
|
@@ -960,18 +970,18 @@ replicationagent:
|
|
|
960
970
|
name: '%{name}'
|
|
961
971
|
optional:
|
|
962
972
|
jcrprimary_type: cq:Page
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
973
|
+
jcrcontent_cqname: '%{name}'
|
|
974
|
+
jcrcontent_jcrtitle: '%{title}'
|
|
975
|
+
jcrcontent_jcrdescription: '%{description}'
|
|
976
|
+
jcrcontent_slingresource_type: cq/replication/components/agent
|
|
977
|
+
jcrcontent_serialization_type: durbo
|
|
978
|
+
jcrcontent_transport_uri: '%{dest_base_url}/bin/receive?sling:authRequestLogin=1'
|
|
979
|
+
jcrcontent_transport_user: '%{transport_user}'
|
|
980
|
+
jcrcontent_transport_password: '%{transport_password}'
|
|
981
|
+
jcrcontent_log_level: '%{log_level}'
|
|
982
|
+
jcrcontent_retry_delay: '%{retry_delay}'
|
|
983
|
+
jcrcontent_cqtemplate: /libs/cq/replication/templates/agent
|
|
984
|
+
jcrcontent_enabled: true
|
|
975
985
|
responses:
|
|
976
986
|
200:
|
|
977
987
|
handler: simple
|
|
@@ -1030,19 +1040,19 @@ outboxreplicationagent:
|
|
|
1030
1040
|
name: '%{name}'
|
|
1031
1041
|
optional:
|
|
1032
1042
|
jcrprimary_type: cq:Page
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1043
|
+
jcrcontent_cqname: '%{name}'
|
|
1044
|
+
jcrcontent_jcrtitle: '%{title}'
|
|
1045
|
+
jcrcontent_jcrdescription: '%{description}'
|
|
1046
|
+
jcrcontent_slingresource_type: cq/replication/components/agent
|
|
1047
|
+
jcrcontent_transport_uri: repo://var/replication/outbox
|
|
1048
|
+
jcrcontent_no_versioning: true
|
|
1049
|
+
jcrcontent_log_level: '%{log_level}'
|
|
1050
|
+
jcrcontent_cqtemplate: /libs/cq/replication/templates/agent
|
|
1051
|
+
jcrcontent_enabled: true
|
|
1052
|
+
jcrcontent_trigger_distribute: true
|
|
1053
|
+
jcrcontent_trigger_modified: false
|
|
1054
|
+
jcrcontent_trigger_specific: true
|
|
1055
|
+
jcrcontent_user_id: '%{user_id}'
|
|
1046
1056
|
responses:
|
|
1047
1057
|
200:
|
|
1048
1058
|
handler: simple
|
|
@@ -1101,19 +1111,19 @@ reversereplicationagent:
|
|
|
1101
1111
|
name: '%{name}'
|
|
1102
1112
|
optional:
|
|
1103
1113
|
jcrprimary_type: cq:Page
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1114
|
+
jcrcontent_cqname: '%{name}'
|
|
1115
|
+
jcrcontent_jcrtitle: '%{title}'
|
|
1116
|
+
jcrcontent_jcrdescription: '%{description}'
|
|
1117
|
+
jcrcontent_slingresource_type: cq/replication/components/agent
|
|
1118
|
+
jcrcontent_serialization_type: durbo
|
|
1119
|
+
jcrcontent_transport_uri: '%{dest_base_url}/bin/receive?sling:authRequestLogin=1'
|
|
1120
|
+
jcrcontent_transport_user: '%{transport_user}'
|
|
1121
|
+
jcrcontent_transport_password: '%{transport_password}'
|
|
1122
|
+
jcrcontent_log_level: '%{log_level}'
|
|
1123
|
+
jcrcontent_retry_delay: '%{retry_delay}'
|
|
1124
|
+
jcrcontent_cqtemplate: /libs/cq/replication/templates/agent
|
|
1125
|
+
jcrcontent_enabled: true
|
|
1126
|
+
jcrcontent_reverse_replication: true
|
|
1117
1127
|
responses:
|
|
1118
1128
|
200:
|
|
1119
1129
|
handler: simple
|
data/lib/ruby_aem/client.rb
CHANGED
data/lib/ruby_aem/error.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright 2016-
|
|
1
|
+
# Copyright 2016-2021 Shine Solutions Group
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -33,6 +33,8 @@ module RubyAem
|
|
|
33
33
|
intermediate_path: intermediate_path,
|
|
34
34
|
authorizable_id: authorizable_id
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
@call_params[:intermediate_path] = RubyAem::Swagger.path(@call_params[:intermediate_path])
|
|
36
38
|
end
|
|
37
39
|
|
|
38
40
|
# Create AEM Authorizable Keystore.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright 2016-
|
|
1
|
+
# Copyright 2016-2021 Shine Solutions Group
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -41,6 +41,32 @@ module RubyAem
|
|
|
41
41
|
def stop
|
|
42
42
|
@client.call(self.class, __callee__.to_s, @call_params)
|
|
43
43
|
end
|
|
44
|
+
|
|
45
|
+
# Retrieve bundle info.
|
|
46
|
+
#
|
|
47
|
+
# @return RubyAem::Result
|
|
48
|
+
def info
|
|
49
|
+
@client.call(self.class, __callee__.to_s, @call_params)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Check if this bundle state is active.
|
|
53
|
+
# True result data indicates that the bundle is active, false otherwise.
|
|
54
|
+
#
|
|
55
|
+
# @return RubyAem::Result
|
|
56
|
+
def is_active
|
|
57
|
+
result = info
|
|
58
|
+
|
|
59
|
+
state = result.data.data[0].state
|
|
60
|
+
if state == 'Active'
|
|
61
|
+
result.message = "Bundle #{@call_params[:name]} is active"
|
|
62
|
+
result.data = true
|
|
63
|
+
else
|
|
64
|
+
result.message = "Bundle #{@call_params[:name]} is not active. Bundle state is #{state}"
|
|
65
|
+
result.data = false
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
result
|
|
69
|
+
end
|
|
44
70
|
end
|
|
45
71
|
end
|
|
46
72
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright 2016-2018 Shine Solutions
|
|
1
|
+
# Copyright 2016-2018-2021 Shine Solutions Group
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -38,6 +38,8 @@ module RubyAem
|
|
|
38
38
|
keystore_intermediate_path: keystore_intermediate_path,
|
|
39
39
|
keystore_authorizable_id: keystore_authorizable_id
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
@call_params[:keystore_intermediate_path] = RubyAem::Swagger.path(@call_params[:keystore_intermediate_path])
|
|
41
43
|
end
|
|
42
44
|
|
|
43
45
|
# Create is an alias to import.
|
data/lib/ruby_aem/response.rb
CHANGED
data/lib/ruby_aem/result.rb
CHANGED
data/lib/ruby_aem/swagger.rb
CHANGED
data/lib/ruby_aem.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby_aem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shine Solutions
|
|
8
8
|
- Cliffano Subagio
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2021-09-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: retries
|
|
@@ -127,7 +127,7 @@ homepage: https://github.com/shinesolutions/ruby_aem
|
|
|
127
127
|
licenses:
|
|
128
128
|
- Apache-2.0
|
|
129
129
|
metadata: {}
|
|
130
|
-
post_install_message:
|
|
130
|
+
post_install_message:
|
|
131
131
|
rdoc_options: []
|
|
132
132
|
require_paths:
|
|
133
133
|
- lib
|
|
@@ -142,9 +142,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
142
142
|
- !ruby/object:Gem::Version
|
|
143
143
|
version: '0'
|
|
144
144
|
requirements: []
|
|
145
|
-
rubyforge_project:
|
|
145
|
+
rubyforge_project:
|
|
146
146
|
rubygems_version: 2.6.14.4
|
|
147
|
-
signing_key:
|
|
147
|
+
signing_key:
|
|
148
148
|
specification_version: 4
|
|
149
149
|
summary: AEM API Ruby client
|
|
150
150
|
test_files: []
|