ruby_aem_aws 1.2.1 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd436fe17bd51d60012cbfaa8592047980b932fb
4
- data.tar.gz: 902bdd3b55edf1250ce74469e8b6ecd51d73a0e5
3
+ metadata.gz: 2119ea82ad020763efc3509aeb665994a52deed4
4
+ data.tar.gz: 5f497699aca45316d69e62a864d95e30fb7df1db
5
5
  SHA512:
6
- metadata.gz: 943a0d8c0c3c8806e4710f7bb06205e16a04a5e09000704e19530131af0f748224d8afdb5651168531df732090ebff6c3e03d328950ac1dab9eb958f9fb30cdf
7
- data.tar.gz: e6d7f7c2b4109aef9347de1213766d51a418ccc9c26fa78b19c900b7f6c100febcdf5ea82f8d026176be42175fb4434555201152ff0ed0746ffbe19a3e1bc88d
6
+ metadata.gz: 65a7e1bc47342df6ddc07f23e54d7b75f347264c9d8b69592caef796a49ac88f23b85a0564c006eea8393dd8458d5b98c8199ce82c863edf92fa98a0a60ae613
7
+ data.tar.gz: 40ff794bd6ecd741d1c4f19ac1c00555a49e1f5ff5103f5399c8b1004b3e25b1d4b283549ff63e45fd1f02188ec82f9a370178d257ac399cc6ea998a47645e19
data/conf/gem.yaml CHANGED
@@ -1 +1 @@
1
- version: 1.2.1
1
+ version: 1.3.0
@@ -59,6 +59,13 @@ module RubyAemAws
59
59
  instance += 1 if author_standby.wait_until_healthy.eql? true
60
60
  return true unless instance < 2
61
61
  end
62
+
63
+ def get_tags
64
+ tags = []
65
+ tags.push(author_primary.get_tags)
66
+ tags.push(author_standby.get_tags)
67
+ tags
68
+ end
62
69
  end
63
70
  end
64
71
  end
@@ -68,6 +68,16 @@ module RubyAemAws
68
68
  instance.terminate
69
69
  instance.wait_until_terminated
70
70
  end
71
+
72
+ def get_tags
73
+ tags = []
74
+ get_all_instances.each do |i|
75
+ next if i.nil?
76
+
77
+ tags.push(i.tags)
78
+ end
79
+ tags
80
+ end
71
81
  end
72
82
  end
73
83
  end
@@ -52,6 +52,11 @@ module RubyAemAws
52
52
  instance.terminate
53
53
  instance.wait_until_terminated
54
54
  end
55
+
56
+ def get_tags
57
+ instance = get_instance
58
+ instance.tags
59
+ end
55
60
  end
56
61
  end
57
62
  end
@@ -46,6 +46,11 @@ module RubyAemAws
46
46
  @cloud_watch_log_client = params[:CloudWatchLogsClient]
47
47
  @ec2_resource = params[:Ec2Resource]
48
48
  end
49
+
50
+ def get_tags
51
+ instance = get_instance
52
+ instance.tags
53
+ end
49
54
  end
50
55
  end
51
56
  end
@@ -23,7 +23,7 @@ module RubyAemAws
23
23
  # Interface to the AWS instance running the Author-Standby component of a full-set AEM stack.
24
24
  class AuthorStandby
25
25
  attr_reader :descriptor, :ec2_resource, :cloud_watch_client, :cloud_watch_log_client
26
- include AbstractGroupedComponent
26
+ include AbstractSingleComponent
27
27
  include AbstractSnapshot
28
28
  include HealthyStateVerifier
29
29
  include MetricVerifier
@@ -52,6 +52,11 @@ module RubyAemAws
52
52
  instance.terminate
53
53
  instance.wait_until_terminated
54
54
  end
55
+
56
+ def get_tags
57
+ instance = get_instance
58
+ instance.tags
59
+ end
55
60
  end
56
61
  end
57
62
  end
@@ -62,6 +62,16 @@ module RubyAemAws
62
62
  instance.terminate
63
63
  instance.wait_until_terminated
64
64
  end
65
+
66
+ def get_tags
67
+ tags = []
68
+ get_all_instances.each do |i|
69
+ next if i.nil?
70
+
71
+ tags.push(i.tags)
72
+ end
73
+ tags
74
+ end
65
75
  end
66
76
  end
67
77
  end
@@ -62,6 +62,16 @@ module RubyAemAws
62
62
  instance.terminate
63
63
  instance.wait_until_terminated
64
64
  end
65
+
66
+ def get_tags
67
+ tags = []
68
+ get_all_instances.each do |i|
69
+ next if i.nil?
70
+
71
+ tags.push(i.tags)
72
+ end
73
+ tags
74
+ end
65
75
  end
66
76
  end
67
77
  end
@@ -62,6 +62,16 @@ module RubyAemAws
62
62
  instance.terminate
63
63
  instance.wait_until_terminated
64
64
  end
65
+
66
+ def get_tags
67
+ tags = []
68
+ get_all_instances.each do |i|
69
+ next if i.nil?
70
+
71
+ tags.push(i.tags)
72
+ end
73
+ tags
74
+ end
65
75
  end
66
76
  end
67
77
  end
@@ -67,6 +67,16 @@ module RubyAemAws
67
67
  instance.terminate
68
68
  instance.wait_until_terminated
69
69
  end
70
+
71
+ def get_tags
72
+ tags = []
73
+ get_all_instances.each do |i|
74
+ next if i.nil?
75
+
76
+ tags.push(i.tags)
77
+ end
78
+ tags
79
+ end
70
80
  end
71
81
  end
72
82
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_aem_aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shine Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-16 00:00:00.000000000 Z
11
+ date: 2019-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk