ruby_aem 1.0.16 → 1.0.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e935c237f64320aeb8ddb56917048a6e417f9d9a
4
- data.tar.gz: 7f91161aa63f00432bea5fc1b477ae2a0aef9fdb
3
+ metadata.gz: 997758befea228b47ab2a52668b0997ac9b1f64d
4
+ data.tar.gz: a13b3806ac835df5bdc2b8026121946aab9408b1
5
5
  SHA512:
6
- metadata.gz: 106576e2b45a2364251f0dc22772ca086fa70c238ef5ebae9fcc3cc145ac08b638f83f63a54546b6cb2df7efcafc9ad16f9b648ec89fee43526e9e3c6694611c
7
- data.tar.gz: 7ec45d83ea8e7513fa53f88080f6e1f22fd8e8b301eb04df10c85f8967033a6d7a1acb725069b7d8c7b697c2d257c5f5b5e341ee9bff7f18db53e8d5ca7839fb
6
+ metadata.gz: e1eef1c80335c7259be187c0316946f1854ea05eb19e94609367fd1e07d3b229618240622078f75587f1ee2ded6febb11575c4a812710d8a7cc4060058b489a0
7
+ data.tar.gz: b14fb9d49fb1830c3387222db01d5eafbb1bf0117460381e2e9a709629029a56b9bdce74c322ed5cfefd2b07c816eb8b9e5c5e3655337176e20145811422f412
@@ -47,11 +47,9 @@ module RubyAem
47
47
  # @param tags comma separated tags
48
48
  # @param combine_tags_or
49
49
  # @return RubyAem::Result
50
- def get_aem_health_check(tags, combine_tags_or)
51
-
52
- @call_params[:tags] = tags
53
- @call_params[:combine_tags_or] = combine_tags_or
50
+ def get_aem_health_check(opts = {})
54
51
 
52
+ @call_params = @call_params.merge(opts)
55
53
  @client.call(self.class, __callee__.to_s, @call_params)
56
54
  end
57
55
 
@@ -101,7 +99,7 @@ module RubyAem
101
99
  # @param opts optional parameters:
102
100
  # - _retries: retries library's options (http://www.rubydoc.info/gems/retries/0.0.5#Usage), restricted to max_trie, base_sleep_seconds, max_sleep_seconds
103
101
  # @return RubyAem::Result
104
- def get_aem_health_check_wait_until_ok(tags, combine_tags_or,
102
+ def get_aem_health_check_wait_until_ok(
105
103
  opts = {
106
104
  _retries: {
107
105
  max_tries: 30,
@@ -122,7 +120,7 @@ module RubyAem
122
120
  result = nil
123
121
  with_retries(:max_tries => opts[:_retries][:max_tries], :base_sleep_seconds => opts[:_retries][:base_sleep_seconds], :max_sleep_seconds => opts[:_retries][:max_sleep_seconds]) { |retries_count|
124
122
  begin
125
- result = get_aem_health_check(tags, combine_tags_or)
123
+ result = get_aem_health_check({ :tags => opts[:tags], :combine_tags_or => opts[:combine_tags_or] })
126
124
  is_ok = true;
127
125
  result.data.each { |check|
128
126
  if check['status'] != 'OK'
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: 1.0.16
4
+ version: 1.0.17
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: 2017-04-11 00:00:00.000000000 Z
12
+ date: 2017-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri