ruby_aem 3.12.0 → 3.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/conf/gem.yaml +1 -1
- data/conf/spec.yaml +1 -0
- data/lib/ruby_aem/resources/aem.rb +30 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cdfb890b2824dca2da81fe3f0d82fd3f8d91ec0
|
4
|
+
data.tar.gz: 9cbcad956d4e7d6b31039582823f2a88c032e0ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c789eedbcf6baf5f78ad018b70fc360381239281a21a145bcc36f20e068789dc0045c630b2b6b10f6ab47a28e9ca4b567161226017e663e052ff5cfc816a0304
|
7
|
+
data.tar.gz: 89a58f2cace1a285274b4f3736a216e2862d278707a16330387d23b0bb9de1289bdef18cf37e6be315a5ba0dde556787234b323e4a40bbc28bf7dfb3cd5dc9d7
|
data/conf/gem.yaml
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version: 3.
|
1
|
+
version: 3.14.0
|
data/conf/spec.yaml
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
require 'retries'
|
16
16
|
require 'ruby_aem/error'
|
17
17
|
require 'rexml/document'
|
18
|
+
require 'ruby_aem/resources/bundle'
|
18
19
|
|
19
20
|
module RubyAem
|
20
21
|
# AEM resources
|
@@ -282,6 +283,35 @@ module RubyAem
|
|
282
283
|
def get_product_info
|
283
284
|
@client.call(self.class, __callee__.to_s, @call_params)
|
284
285
|
end
|
286
|
+
|
287
|
+
# Check whether development bundles are active as per AEM Security Checklist
|
288
|
+
# https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/security-checklist.html
|
289
|
+
# The checklist documentation also includes 'com.adobe.granite.crxde-support',
|
290
|
+
# however this bundle does not exist on AEM 6.5 so it has been excluded from this implementation.
|
291
|
+
# True result data indicates that the development bundles are active, false otherwise.
|
292
|
+
#
|
293
|
+
# @return RubyAem::Result
|
294
|
+
def get_development_bundles_status
|
295
|
+
crx_explorer_bundle = RubyAem::Resources::Bundle.new(@client, 'com.adobe.granite.crx-explorer')
|
296
|
+
crxde_lite_bundle = RubyAem::Resources::Bundle.new(@client, 'com.adobe.granite.crxde-lite')
|
297
|
+
|
298
|
+
result = RubyAem::Result.new(nil, nil)
|
299
|
+
|
300
|
+
crx_explorer_bundle_is_active = crx_explorer_bundle.is_active.data
|
301
|
+
crxde_lite_bundle_is_active = crxde_lite_bundle.is_active.data
|
302
|
+
if crx_explorer_bundle_is_active && crxde_lite_bundle_is_active
|
303
|
+
result.message = 'Development bundles are all active'
|
304
|
+
result.data = true
|
305
|
+
elsif !crx_explorer_bundle_is_active && !crxde_lite_bundle_is_active
|
306
|
+
result.message = 'Development bundles are all inactive'
|
307
|
+
result.data = false
|
308
|
+
else
|
309
|
+
result.message = "Development bundles are partially active. crx_explorer_bundle is active: #{crx_explorer_bundle_is_active}, crxde_lite_bundle is active: #{crxde_lite_bundle_is_active}"
|
310
|
+
result.data = false
|
311
|
+
end
|
312
|
+
|
313
|
+
result
|
314
|
+
end
|
285
315
|
end
|
286
316
|
end
|
287
317
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_aem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shine Solutions
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-09-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: retries
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - '='
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 3.
|
34
|
+
version: 3.7.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - '='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 3.
|
41
|
+
version: 3.7.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: swagger_aem_osgi
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|