prima-twig 0.42.11 → 0.42.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prima_aws_client.rb +4 -4
- 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: 50161ed0701f728e62ad9165c1fc8f8cdf7589881398c41ef0a61905c1737a11
|
4
|
+
data.tar.gz: 52c227da2357f091133812528f2b546b892347a85027e6473881225b3bcb2f03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52e36e3c6fa66a2bc6ab2d92cb887633ee72a6ddfc9f9b02ef654a345c9b81f4f8985738a66885a7c1f85053ce050e1a79daf10841d00da63bcb54358e7a3599
|
7
|
+
data.tar.gz: fe7bf65e9863af47e4499bfb06a75963266d5ff0d797d589c77bad0a6ac80413d13a3dd587102cc008bc15445e72395d8e7cdb81ece131e3cd937c771af55168
|
data/lib/prima_aws_client.rb
CHANGED
@@ -14,8 +14,8 @@ module PrimaAwsClient
|
|
14
14
|
@asg ||= Aws::AutoScaling::Client.new
|
15
15
|
end
|
16
16
|
|
17
|
-
def
|
18
|
-
@
|
17
|
+
def ec2_client
|
18
|
+
@ec2 ||= Aws::Ec2::Client.new
|
19
19
|
end
|
20
20
|
|
21
21
|
def stack_list
|
@@ -291,8 +291,8 @@ module PrimaAwsClient
|
|
291
291
|
end
|
292
292
|
|
293
293
|
def get_spotfleet_capacity(fleet_arn)
|
294
|
-
resp =
|
295
|
-
resp.
|
294
|
+
resp = ec2_client.describe_spot_fleet_requests(spot_fleet_request_ids: [fleet_arn])
|
295
|
+
resp.spot_fleet_request_configs[0].spot_fleet_request_config.target_capacity
|
296
296
|
end
|
297
297
|
|
298
298
|
def hashes_to_tags(hashes)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prima-twig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.42.
|
4
|
+
version: 0.42.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matteo Giachino
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.7.
|
217
|
+
rubygems_version: 2.7.6
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: The Prima twig toolbelt
|