ruby_aem 2.2.1 → 2.3.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: 7b288255493d6fb0fc5db64fa648a90a35f0c88e
4
- data.tar.gz: 728998f3481fa6d9c6f4bbcdbfd434e7a212154c
3
+ metadata.gz: 3aab1849e219d39fb81804794144df1016375cd9
4
+ data.tar.gz: 6fe9d198b3a1b31c87ea6b2515b5a09deb0cf71e
5
5
  SHA512:
6
- metadata.gz: 27814000d6de67c9d1320b60ef3ccdc414b6fc899f5c9911d6c4a9ca4cb065db3dabc2be70dfa6e2e211bd6ae46eb21bb307cd4e3a7524e34ff1fcfa0b2ec1ea
7
- data.tar.gz: 0d4c0fb25df92ac234632374b05fc0159ca13bdc6d0a60eaa8e50a44fbae69bfa6ba169cb78561e15e432e99d3935864a52698ef8901fcc44c7690a4af45d2ec
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:
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
data/lib/ruby_aem.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2016-2017 Shine Solutions
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.
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.2.1
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-05 00:00:00.000000000 Z
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.2.0
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.2.0
69
+ version: 2.3.0
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
72
  requirement: !ruby/object:Gem::Requirement