autocanary24 0.4.2 → 0.4.3
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/CHANGELOG.md +4 -1
- data/autocanary24.gemspec +1 -1
- data/examples/.bundle/config +2 -2
- data/examples/Gemfile +1 -0
- data/examples/Gemfile.lock +16 -12
- data/lib/autocanary24/canarystack.rb +8 -1
- data/lib/autocanary24/version.rb +1 -1
- metadata +19 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07390b5957f989e85a82a481ae5d3e1f22abc219
|
|
4
|
+
data.tar.gz: 8ec87ffd2bcc470de287d4336d88d2eca17b0422
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24be32fec01796f053a0bec77a19d341839a265b2b5fb1cf44acd18f48e87021a45622a6304c6b3ef2799b43f35de3b8e9eac3060d8b1ad60da2437ce96f31f3
|
|
7
|
+
data.tar.gz: d28e9a48da7dffff0af849e77154aba23ff307e3f18daaca4e2db4a823b093d3ff11a33d9e7cac1ead6ea0a468920bb33025d0eec91db0fa5ca079660b8e5dca
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
0.4.3 (2017-01-16)
|
|
2
2
|
------------------
|
|
3
|
+
* Issue - Unable to deploy stack with higher AutoScalingGroup min-size than the currently running one
|
|
4
|
+
|
|
5
|
+
See [related GitHub pull request #10](https://github.com/AutoScout24/autocanary24/pull/10) and [related GitHub issue #9](https://github.com/AutoScout24/autocanary24/issues/9).
|
|
3
6
|
|
|
4
7
|
0.4.2 (2016-12-07)
|
|
5
8
|
------------------
|
data/autocanary24.gemspec
CHANGED
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
|
7
7
|
spec.name = "autocanary24"
|
|
8
8
|
spec.version = AutoCanary24::VERSION
|
|
9
9
|
spec.authors = ["Philipp Garbe"]
|
|
10
|
-
spec.email = ["
|
|
10
|
+
spec.email = ["philipp.garbe@scout24.com"]
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Library for blue/green and canary deployments with CloudFormation.}
|
|
13
13
|
spec.description = %q{autocanary24 provides a small convenient module for blue/green and canary deployments with CloudFormation.}
|
data/examples/.bundle/config
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
---
|
|
2
|
-
BUNDLE_PATH: vendor/bundle
|
|
3
|
-
BUNDLE_DISABLE_SHARED_GEMS:
|
|
2
|
+
BUNDLE_PATH: "vendor/bundle"
|
|
3
|
+
BUNDLE_DISABLE_SHARED_GEMS: "true"
|
data/examples/Gemfile
CHANGED
data/examples/Gemfile.lock
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
autostacker24 (
|
|
4
|
+
autostacker24 (2.5.1)
|
|
5
5
|
aws-sdk-core (~> 2)
|
|
6
|
-
json (~>
|
|
7
|
-
json_pure (~>
|
|
8
|
-
aws-sdk (2.
|
|
9
|
-
aws-sdk-resources (= 2.
|
|
10
|
-
aws-sdk-core (2.
|
|
6
|
+
json (~> 2.0)
|
|
7
|
+
json_pure (~> 2.0)
|
|
8
|
+
aws-sdk (2.6.44)
|
|
9
|
+
aws-sdk-resources (= 2.6.44)
|
|
10
|
+
aws-sdk-core (2.6.44)
|
|
11
|
+
aws-sigv4 (~> 1.0)
|
|
11
12
|
jmespath (~> 1.0)
|
|
12
|
-
aws-sdk-resources (2.
|
|
13
|
-
aws-sdk-core (= 2.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
aws-sdk-resources (2.6.44)
|
|
14
|
+
aws-sdk-core (= 2.6.44)
|
|
15
|
+
aws-sigv4 (1.0.0)
|
|
16
|
+
jmespath (1.3.1)
|
|
17
|
+
json (2.0.3)
|
|
18
|
+
json_pure (2.0.3)
|
|
19
|
+
rake (12.0.0)
|
|
17
20
|
|
|
18
21
|
PLATFORMS
|
|
19
22
|
ruby
|
|
@@ -21,6 +24,7 @@ PLATFORMS
|
|
|
21
24
|
DEPENDENCIES
|
|
22
25
|
autostacker24
|
|
23
26
|
aws-sdk (~> 2)
|
|
27
|
+
rake
|
|
24
28
|
|
|
25
29
|
BUNDLED WITH
|
|
26
|
-
1.
|
|
30
|
+
1.13.7
|
|
@@ -96,10 +96,17 @@ module AutoCanary24
|
|
|
96
96
|
puts "WARNING: ASG still on the ELB!"
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
asg_instances = auto_scaling_group[:instances] \
|
|
100
100
|
.select { |i| i[:lifecycle_state]=="InService" } \
|
|
101
101
|
.map{ |i| { instance_id: i[:instance_id] } }
|
|
102
102
|
|
|
103
|
+
elb_client = Aws::ElasticLoadBalancing::Client.new
|
|
104
|
+
elb_instances = elb_client.describe_instance_health({load_balancer_name: elb})[:instance_states] \
|
|
105
|
+
.map{ |i| { instance_id: i[:instance_id] } }
|
|
106
|
+
|
|
107
|
+
# Remove instances that are not registered at the ELB
|
|
108
|
+
instances = elb_instances & asg_instances
|
|
109
|
+
|
|
103
110
|
if instances.length > 0
|
|
104
111
|
wait_for_instances_detached_from_elb(instances, elb)
|
|
105
112
|
end
|
data/lib/autocanary24/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: autocanary24
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Philipp Garbe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: autostacker24
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '2'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: aws-sdk-core
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - ~>
|
|
31
|
+
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '2'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - ~>
|
|
38
|
+
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '2'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: bundler
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - ~>
|
|
45
|
+
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '1.11'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - ~>
|
|
52
|
+
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '1.11'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: rake
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - ~>
|
|
59
|
+
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '10.0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - ~>
|
|
66
|
+
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '10.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: rspec
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- - ~>
|
|
73
|
+
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '3.0'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- - ~>
|
|
80
|
+
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '3.0'
|
|
83
83
|
description: autocanary24 provides a small convenient module for blue/green and canary
|
|
84
84
|
deployments with CloudFormation.
|
|
85
85
|
email:
|
|
86
|
-
-
|
|
86
|
+
- philipp.garbe@scout24.com
|
|
87
87
|
executables: []
|
|
88
88
|
extensions: []
|
|
89
89
|
extra_rdoc_files: []
|
|
90
90
|
files:
|
|
91
|
-
- .gitignore
|
|
92
|
-
- .rspec
|
|
93
|
-
- .travis.yml
|
|
91
|
+
- ".gitignore"
|
|
92
|
+
- ".rspec"
|
|
93
|
+
- ".travis.yml"
|
|
94
94
|
- CHANGELOG.md
|
|
95
95
|
- Gemfile
|
|
96
96
|
- LICENSE.txt
|
|
@@ -129,17 +129,17 @@ require_paths:
|
|
|
129
129
|
- lib
|
|
130
130
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
131
|
requirements:
|
|
132
|
-
- -
|
|
132
|
+
- - ">="
|
|
133
133
|
- !ruby/object:Gem::Version
|
|
134
134
|
version: '0'
|
|
135
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
requirements:
|
|
137
|
-
- -
|
|
137
|
+
- - ">="
|
|
138
138
|
- !ruby/object:Gem::Version
|
|
139
139
|
version: '0'
|
|
140
140
|
requirements: []
|
|
141
141
|
rubyforge_project:
|
|
142
|
-
rubygems_version: 2.
|
|
142
|
+
rubygems_version: 2.6.8
|
|
143
143
|
signing_key:
|
|
144
144
|
specification_version: 4
|
|
145
145
|
summary: Library for blue/green and canary deployments with CloudFormation.
|