ruby_aem 3.9.0 → 3.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2ed1677a7b7238645bdef9c119ec97633a878a4
4
- data.tar.gz: f45bd3492b51cdaecfc4d5bac3a653d024629f9e
3
+ metadata.gz: 77cd630887d7b0e7cba6d66048d3311cc1fe7fcb
4
+ data.tar.gz: 9e6563f890d65b4b3d513e91eb5a9e69f596d822
5
5
  SHA512:
6
- metadata.gz: 3b98cf357bedb502071301b796274c8f299a85d23b484aefbb46cb6ba1203ce65998b4598d74ffe02db88a3e3eda0a62284f41b0c54d52221086f47044f12282
7
- data.tar.gz: 9499e464235a2712ad434c7100bec694057e90b532f6ea42ebfd8e3fe128f603919b6b0a54992f374eb98ef401a8694810f53c0ea14c942fb16d51a8a3c6df12
6
+ metadata.gz: 2846bdc56ea4d2decde0242a05359c5deb577ca57a5c95b1cec454fb7825d9c5c475a865c5898e86b5b3cd404a82e79bd7a880fd6026ec9702273eb5c939d091
7
+ data.tar.gz: 3b9f8ed3040c878c0497c8c0699efc56c7eba0c3f139369075061d5932342799331c0f781164165cde2d31c6c6b3a6033cc5fa0a9fbd603d6b8c4c9337d07641
data/conf/gem.yaml CHANGED
@@ -1 +1 @@
1
- version: 3.9.0
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
- jcrcontentcqname: '%{name}'
343
- jcrcontentjcrtitle: '%{title}'
344
- jcrcontentjcrdescription: '%{description}'
345
- jcrcontentslingresource_type: cq/replication/components/agent
346
- jcrcontenttransport_uri: '%{dest_base_url}/dispatcher/invalidate.cache'
347
- jcrcontentlog_level: '%{log_level}'
348
- jcrcontentno_versioning: true
349
- jcrcontentprotocol_http_headers:
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
- jcrcontentprotocol_http_headers_type_hint: String[]
354
- jcrcontentprotocol_http_method: GET
355
- jcrcontentretry_delay: '%{retry_delay}'
356
- jcrcontentserialization_type: flush
357
- jcrcontentjcrmixin_types: cq:ReplicationStatus
358
- jcrcontenttrigger_receive: true
359
- jcrcontenttrigger_specific: true
360
- jcrcontentcqtemplate: /libs/cq/replication/templates/agent
361
- jcrcontentenabled: true
362
- jcrcontentssl: '%{ssl}'
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
- profilegiven_name: '%{name}'
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
- jcrcontentcqname: '%{name}'
964
- jcrcontentjcrtitle: '%{title}'
965
- jcrcontentjcrdescription: '%{description}'
966
- jcrcontentslingresource_type: cq/replication/components/agent
967
- jcrcontentserialization_type: durbo
968
- jcrcontenttransport_uri: '%{dest_base_url}/bin/receive?sling:authRequestLogin=1'
969
- jcrcontenttransport_user: '%{transport_user}'
970
- jcrcontenttransport_password: '%{transport_password}'
971
- jcrcontentlog_level: '%{log_level}'
972
- jcrcontentretry_delay: '%{retry_delay}'
973
- jcrcontentcqtemplate: /libs/cq/replication/templates/agent
974
- jcrcontentenabled: true
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
- jcrcontentcqname: '%{name}'
1034
- jcrcontentjcrtitle: '%{title}'
1035
- jcrcontentjcrdescription: '%{description}'
1036
- jcrcontentslingresource_type: cq/replication/components/agent
1037
- jcrcontenttransport_uri: repo://var/replication/outbox
1038
- jcrcontentno_versioning: true
1039
- jcrcontentlog_level: '%{log_level}'
1040
- jcrcontentcqtemplate: /libs/cq/replication/templates/agent
1041
- jcrcontentenabled: true
1042
- jcrcontenttrigger_distribute: true
1043
- jcrcontenttrigger_modified: false
1044
- jcrcontenttrigger_specific: true
1045
- jcrcontentuser_id: '%{user_id}'
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
- jcrcontentcqname: '%{name}'
1105
- jcrcontentjcrtitle: '%{title}'
1106
- jcrcontentjcrdescription: '%{description}'
1107
- jcrcontentslingresource_type: cq/replication/components/agent
1108
- jcrcontentserialization_type: durbo
1109
- jcrcontenttransport_uri: '%{dest_base_url}/bin/receive?sling:authRequestLogin=1'
1110
- jcrcontenttransport_user: '%{transport_user}'
1111
- jcrcontenttransport_password: '%{transport_password}'
1112
- jcrcontentlog_level: '%{log_level}'
1113
- jcrcontentretry_delay: '%{retry_delay}'
1114
- jcrcontentcqtemplate: /libs/cq/replication/templates/agent
1115
- jcrcontentenabled: true
1116
- jcrcontentreverse_replication: true
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
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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-2019 Shine Solutions
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.
@@ -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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
data/lib/ruby_aem.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2019 Shine Solutions
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.
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.9.0
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: 2020-09-26 00:00:00.000000000 Z
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: []