aws-asg-fleet 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/asg-fleet.gemspec +1 -1
- data/lib/aws-sdk-autoscaling/fleet.rb +12 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d02104cf75f70b3a4564a7042cbb3aa1037241b1a47acc1493289124505a097
|
4
|
+
data.tar.gz: 76f4f1895b33859d1b4c329f5e723a52fa118277c1c4bcb1a7fef7b07b524404
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7946bb9fb7c0d3eb02120296b6209170518acfa2984db6229ca38022c3134de7dc59581513a33e4ff66a44179bf880d0844a96b157487bb3f2261cb308f4e776
|
7
|
+
data.tar.gz: b0ca26382ddaba4c806adb0b64aae972676b4979ee62f03f0c2d5f357b9e6936745cae4c94cc7bd9201ddd188fd6f8f9fb18d7cc2d6877b372b5148d0a5718bf
|
data/asg-fleet.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "aws-asg-fleet"
|
8
|
-
spec.version = "0.1.
|
8
|
+
spec.version = "0.1.3"
|
9
9
|
spec.authors = ["Zach Wily"]
|
10
10
|
spec.email = ["zach@zwily.com"]
|
11
11
|
spec.description = %q{AWS Auto Scaling Fleets}
|
@@ -57,8 +57,15 @@ module Aws::AutoScaling
|
|
57
57
|
group_for_tag(tags.first)
|
58
58
|
end
|
59
59
|
|
60
|
+
def any_lc_group
|
61
|
+
tag_with_lc = tags.detect { |tag| !group_for_tag(tag).launch_configuration.nil? }
|
62
|
+
return nil if tag_with_lc.nil?
|
63
|
+
|
64
|
+
group_for_tag(tag_with_lc)
|
65
|
+
end
|
66
|
+
|
60
67
|
def template_or_any_group
|
61
|
-
template_group ||
|
68
|
+
template_group || any_lc_group
|
62
69
|
end
|
63
70
|
|
64
71
|
def exists?
|
@@ -97,7 +104,10 @@ module Aws::AutoScaling
|
|
97
104
|
# existing launch configuration on the template scaling group.
|
98
105
|
#
|
99
106
|
def update_launch_configuration name, options = {}
|
100
|
-
old_lc = template_or_any_group
|
107
|
+
old_lc = template_or_any_group&.launch_configuration
|
108
|
+
# There aren't any groups using lcs, so skip updating
|
109
|
+
return if old_lc.nil?
|
110
|
+
|
101
111
|
options = Fleet.options_from(old_lc,
|
102
112
|
:image_id, :instance_type,
|
103
113
|
:block_device_mappings, :instance_monitoring, :kernel_id,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-asg-fleet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Wily
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-autoscaling
|