ruby_aem 2.2.1 → 2.3.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/spec.yaml +12 -0
- 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 +17 -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 +8 -1
- data/lib/ruby_aem/resources/authorizable_keystore.rb +1 -1
- data/lib/ruby_aem/resources/bundle.rb +1 -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/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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3aab1849e219d39fb81804794144df1016375cd9
|
4
|
+
data.tar.gz: 6fe9d198b3a1b31c87ea6b2515b5a09deb0cf71e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff79e0f48632ab7ce32e5adcbad89929acc5f2d5517338f985dde29990eeeda31fda44d2d0867e2b5ef2292103273aadcce81aa45522cb56c5733c6295efe9c4
|
7
|
+
data.tar.gz: e1662e1b5da586adac8f31260f5157c8f1bbdccb1b70067e115e22f745155b3227cc2ecfffcfbb0a4d41f8e6035966f42173eb43b01c7dd7acf73c3d3df21f28
|
data/conf/spec.yaml
CHANGED
@@ -62,6 +62,18 @@ aem:
|
|
62
62
|
200:
|
63
63
|
handler: xml_package_list
|
64
64
|
message: 'All packages list retrieved successfully'
|
65
|
+
get_product_info:
|
66
|
+
api: console
|
67
|
+
operation: getAemProductInfo
|
68
|
+
params:
|
69
|
+
required:
|
70
|
+
responses:
|
71
|
+
200:
|
72
|
+
handler: json_product_info
|
73
|
+
message: 'Get Productinfo sucessfully'
|
74
|
+
404:
|
75
|
+
handler: simple
|
76
|
+
message: 'Error getting Productinfo'
|
65
77
|
authorizablekeystore:
|
66
78
|
responses:
|
67
79
|
404:
|
data/lib/ruby_aem/client.rb
CHANGED
data/lib/ruby_aem/error.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2016-
|
1
|
+
# Copyright 2016-2019 Shine Solutions
|
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.
|
@@ -214,5 +214,21 @@ module RubyAem
|
|
214
214
|
|
215
215
|
result
|
216
216
|
end
|
217
|
+
|
218
|
+
# Handle product info JSON payload. Result status is determined directly by success field.
|
219
|
+
# NOTE: _response_spec and _call_params are not used in the implementation
|
220
|
+
# of this method, but they are needed for the handler signature.
|
221
|
+
#
|
222
|
+
# @param response HTTP response containing status_code, body, and headers
|
223
|
+
# @param _response_spec response specification as configured in conf/spec.yaml
|
224
|
+
# @param _call_params additional call_params information
|
225
|
+
# @return RubyAem::Result
|
226
|
+
def self.json_product_info(response, _response_spec, _call_params)
|
227
|
+
message = 'AEM Product informations found'
|
228
|
+
result = RubyAem::Result.new(message, response)
|
229
|
+
result.data = response.body
|
230
|
+
|
231
|
+
result
|
232
|
+
end
|
217
233
|
end
|
218
234
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2016-
|
1
|
+
# Copyright 2016-2019 Shine Solutions
|
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.
|
@@ -235,6 +235,13 @@ module RubyAem
|
|
235
235
|
result_copy.data = packages
|
236
236
|
result_copy
|
237
237
|
end
|
238
|
+
|
239
|
+
# Retrieve AEM Product informations
|
240
|
+
#
|
241
|
+
# @return RubyAem::Result
|
242
|
+
def get_product_info
|
243
|
+
@client.call(self.class, __callee__.to_s, @call_params)
|
244
|
+
end
|
238
245
|
end
|
239
246
|
end
|
240
247
|
end
|
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,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_aem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.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: 2018-12-
|
12
|
+
date: 2018-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -59,14 +59,14 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 2.
|
62
|
+
version: 2.3.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 2.
|
69
|
+
version: 2.3.0
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rspec
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|