ruby_aem 3.11.1 → 3.12.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f8e6da1797711c987b5bca88390a88626bddc20
4
- data.tar.gz: 65e8624e50c3557d0195d549291ccc2e1d14d1cb
3
+ metadata.gz: 77cd630887d7b0e7cba6d66048d3311cc1fe7fcb
4
+ data.tar.gz: 9e6563f890d65b4b3d513e91eb5a9e69f596d822
5
5
  SHA512:
6
- metadata.gz: 9e8135f981cabb68a153ea6aa0ee21301e999acb3dd0546341df65ddacc1be750bc1a9a20da1cafd6fb70165b7c26440046ddada9c246d393b4a59ca55c56d2d
7
- data.tar.gz: 4f73f9747d422ad3377e92428dd1ceb770a27fe084ef0950c9834e7e85d22a1f096032c4a8e8f08fb72991319785e9127b3fb365510e321f329d98cc64a27a15
6
+ metadata.gz: 2846bdc56ea4d2decde0242a05359c5deb577ca57a5c95b1cec454fb7825d9c5c475a865c5898e86b5b3cd404a82e79bd7a880fd6026ec9702273eb5c939d091
7
+ data.tar.gz: 3b9f8ed3040c878c0497c8c0699efc56c7eba0c3f139369075061d5932342799331c0f781164165cde2d31c6c6b3a6033cc5fa0a9fbd603d6b8c4c9337d07641
data/conf/gem.yaml CHANGED
@@ -1 +1 @@
1
- version: 3.11.1
1
+ version: 3.12.0
@@ -48,6 +48,25 @@ module RubyAem
48
48
  def info
49
49
  @client.call(self.class, __callee__.to_s, @call_params)
50
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
51
70
  end
52
71
  end
53
72
  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.11.1
4
+ version: 3.12.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: 2021-09-28 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