capistrano-hivequeen 7.7.2 → 7.7.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af7a43b319d233fe8e1d7ce640d2d03686737690e3c62452900da71e810a0426
|
4
|
+
data.tar.gz: ee0fe0a8e640d18180e208217587b4e8d9705665a4b182490293294c35f26330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '096bb90acc29cb9aefaa1095546aa909be7b526f09893e0642f12e97d16611e9440aabc4d415f5ef391c6684322ee169adf7b7f2d1561c824c6d22e303ebd162'
|
7
|
+
data.tar.gz: ca96fa3953d785f0b3aeca107d86b386deb7f3f4be7a66344c6216e955a0ad6d9fad5bb82c76b7b4e3622effddb66c90de5cecc6bbbd67ef29ce3fb86825a378
|
@@ -15,12 +15,12 @@ class HiveQueen
|
|
15
15
|
ssh_public_key = File.read(File.expand_path('~/.ssh/ksr_ed25519.pub'))
|
16
16
|
|
17
17
|
# Get SSH bastion instance(s) from Name tag
|
18
|
-
ssh_params = { filters: [{ name: 'tag:Name', values: %w[ssh-bastion] }] }
|
18
|
+
ssh_params = { filters: [{ name: 'tag:Name', values: %w[ssh-bastion] }, {name: 'instance-state-name', values: %w[running]}] }
|
19
19
|
logger.trace("ec2:DescribeInstances #{ssh_params.to_json}")
|
20
20
|
bastions = ec2_client.describe_instances(**ssh_params).reservations.map(&:instances).flatten
|
21
21
|
|
22
22
|
# Get EC2 instances from private DNS name
|
23
|
-
ec2_params = { filters: [{ name: 'network-interface.private-dns-name', values: private_dns }] }
|
23
|
+
ec2_params = { filters: [{ name: 'network-interface.private-dns-name', values: private_dns }, {name: 'instance-state-name', values: %w[running]}] }
|
24
24
|
logger.trace("ec2:DescribeInstances #{ec2_params.to_json}")
|
25
25
|
instances = ec2_client.describe_instances(**ec2_params).reservations.map(&:instances).flatten
|
26
26
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-hivequeen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.7.
|
4
|
+
version: 7.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Suggs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-ec2
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.1.6
|
149
149
|
signing_key:
|
150
150
|
specification_version: 2
|
151
151
|
summary: Capistrano extensions for interacting with HiveQueen
|