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 +4 -4
- data/conf/gem.yaml +1 -1
- data/lib/ruby_aem/resources/bundle.rb +19 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77cd630887d7b0e7cba6d66048d3311cc1fe7fcb
|
|
4
|
+
data.tar.gz: 9e6563f890d65b4b3d513e91eb5a9e69f596d822
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2846bdc56ea4d2decde0242a05359c5deb577ca57a5c95b1cec454fb7825d9c5c475a865c5898e86b5b3cd404a82e79bd7a880fd6026ec9702273eb5c939d091
|
|
7
|
+
data.tar.gz: 3b9f8ed3040c878c0497c8c0699efc56c7eba0c3f139369075061d5932342799331c0f781164165cde2d31c6c6b3a6033cc5fa0a9fbd603d6b8c4c9337d07641
|
data/conf/gem.yaml
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version: 3.
|
|
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.
|
|
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-
|
|
12
|
+
date: 2021-09-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: retries
|