capistrano3-autoscaling-deploy 0.4 → 0.5
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,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGEwMzAwN2UzNjhlZDUxOTEzZTI2MjFhZjdlNTlmMGJiNjc4ZmJhZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2MzNjEwODhlZjdkNTRlZmJjZTUyYjgyOWZiMDdiNDY2ZDhmMzE1OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmJmZThhZjA5ODIzZTY1NTllZGZlNWQ2MjA4OTg3NDIyODI4MDEyNmY4YzE4
|
10
|
+
OWRhYzQ0YjlhNmI4ZTYzMmNmMDBkMzc4NzdkMGNlMGM1ZDI4ZWMwNzRkMmUw
|
11
|
+
N2E3YTU2NmQ3NGZlMWYxNzdiMzc5ZTgzYTEwZDY1MjZlNDcyNzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTI4MjdjMDQzYjUxNGJjNWZmYThmOGFkNDUxODgwY2ExMDE3YmUwZTk5N2Rk
|
14
|
+
ZGYxY2I0M2I5MTdlODU5N2U5MDliOGUyYmFmZDY5ZTk5OGNmNDgyZTU5MDA0
|
15
|
+
NjQ1YTFlMGY3MDFjZGE1ZjM3ZDUyOGMyMjFhZDViY2Q0N2NiNjk=
|
data/Gemfile.lock
CHANGED
@@ -16,7 +16,7 @@ module AwsHelper
|
|
16
16
|
else
|
17
17
|
instance_ids = instances.map(&:instance_id)
|
18
18
|
ec2 = Aws::EC2::Resource.new(region: aws_region, credentials: aws_credentials)
|
19
|
-
|
19
|
+
info("Auto Scaling Group instances ids: #{instance_ids}")
|
20
20
|
autoscaling_dns = instance_ids.map do |instance_id|
|
21
21
|
ec2.instance(instance_id).public_dns_name
|
22
22
|
end
|
@@ -32,13 +32,11 @@ module AwsHelper
|
|
32
32
|
max_records: 1,
|
33
33
|
).auto_scaling_groups
|
34
34
|
|
35
|
-
|
35
|
+
info("Auto Scaling Groups: #{as_groups}")
|
36
36
|
|
37
37
|
as_group = as_groups[0]
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
puts "as group: #{as_group.instances}"
|
39
|
+
info("Auto Scaling Group instances: #{as_group.instances}")
|
42
40
|
|
43
41
|
as_group.instances
|
44
42
|
end
|
@@ -26,10 +26,10 @@ namespace :autoscaling_deploy do
|
|
26
26
|
ec2_instances.each {|instance|
|
27
27
|
if ec2_instances.first[0] == instance
|
28
28
|
server instance, *roles
|
29
|
-
|
29
|
+
info("First Server: #{instance} - #{aws_deploy_roles}")
|
30
30
|
else
|
31
31
|
server instance, *sanitize_roles(roles)
|
32
|
-
|
32
|
+
info("Server: #{instance} - #{sanitize_roles(aws_deploy_roles)}")
|
33
33
|
end
|
34
34
|
}
|
35
35
|
|
@@ -43,7 +43,7 @@ namespace :autoscaling_deploy do
|
|
43
43
|
|
44
44
|
instances = get_instances(region, key, secret, group_name)
|
45
45
|
|
46
|
-
|
46
|
+
info("Found #{instances.count} servers for Auto Scaling Group: #{group_name} ")
|
47
47
|
|
48
48
|
instances
|
49
49
|
end
|