capistrano-hivequeen 7.7.1 → 7.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ca77135ec2da064aa528ee926c64e0ff2cf97615aed3a8aa1d72813b3a8fb70
4
- data.tar.gz: b456eb78e4f914da4fc6a5eaa3a99f0902336c2951b26437d4bf403f44f7bcae
3
+ metadata.gz: af7a43b319d233fe8e1d7ce640d2d03686737690e3c62452900da71e810a0426
4
+ data.tar.gz: ee0fe0a8e640d18180e208217587b4e8d9705665a4b182490293294c35f26330
5
5
  SHA512:
6
- metadata.gz: 1efcaa3895d677e108d881d3843b3d7a83343218e0d5d3868db439c85d33f0bf038d6ea0f2a31d0e22e5fcd707b23a99c1016d502b0244715ec785c923d6a64f
7
- data.tar.gz: 97a8ea9475a996d9bb820c0c99bd55fbf7af635b30803e1f7a92ad3c64902bba5153560f49d9fa64486ecf0b6495985b31ae050ed14d19655bcc5c3105219d91
6
+ metadata.gz: '096bb90acc29cb9aefaa1095546aa909be7b526f09893e0642f12e97d16611e9440aabc4d415f5ef391c6684322ee169adf7b7f2d1561c824c6d22e303ebd162'
7
+ data.tar.gz: ca96fa3953d785f0b3aeca107d86b386deb7f3f4be7a66344c6216e955a0ad6d9fad5bb82c76b7b4e3622effddb66c90de5cecc6bbbd67ef29ce3fb86825a378
@@ -4,7 +4,10 @@ class HiveQueen
4
4
  end
5
5
 
6
6
  def self.ec2_instance_connect_client
7
- @ec2_instance_connect_client ||= Aws::EC2InstanceConnect::Client.new
7
+ @ec2_instance_connect_client ||= Aws::EC2InstanceConnect::Client.new(
8
+ retry_limit: 5,
9
+ retry_backoff: -> (c) { sleep(5) },
10
+ )
8
11
  end
9
12
 
10
13
  def self.ec2_instance_connect(*private_dns)
@@ -12,12 +15,12 @@ class HiveQueen
12
15
  ssh_public_key = File.read(File.expand_path('~/.ssh/ksr_ed25519.pub'))
13
16
 
14
17
  # Get SSH bastion instance(s) from Name tag
15
- 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]}] }
16
19
  logger.trace("ec2:DescribeInstances #{ssh_params.to_json}")
17
20
  bastions = ec2_client.describe_instances(**ssh_params).reservations.map(&:instances).flatten
18
21
 
19
22
  # Get EC2 instances from private DNS name
20
- 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]}] }
21
24
  logger.trace("ec2:DescribeInstances #{ec2_params.to_json}")
22
25
  instances = ec2_client.describe_instances(**ec2_params).reservations.map(&:instances).flatten
23
26
 
@@ -1,6 +1,6 @@
1
1
  class HiveQueen
2
2
  class Version
3
- @@version = '7.7.1'
3
+ @@version = '7.7.3'
4
4
 
5
5
  def self.to_s
6
6
  @@version
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.1
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: 2022-08-01 00:00:00.000000000 Z
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