firespring_dev_commands 2.1.12.pre.alpha.2 → 2.1.12

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: f8993e41d585b29c955ea70b4dfae9a5c872cf86178187b9cde5ba1f081c3670
4
- data.tar.gz: ce445cfe3aa1cb61ccf839041c82e4300671721f60e7c68d4df63a4042c06b8b
3
+ metadata.gz: 121a137a5d8d89e77b6f08b01e89b7da636e1dffe6389276f95ec19935ae1149
4
+ data.tar.gz: 242fa9e9cf3ff1c800be117e1b7219fbc4d36f2b53c869275a619855f0ae8aae
5
5
  SHA512:
6
- metadata.gz: 2bfbf558bae2b57fff698f64219dba7e3e3c1dda9dd4876bb36668758653ab35d4bb305700e0da7ea3df50181b950f077167361a9724c761a039feb0e83be65a
7
- data.tar.gz: 538965a55936c9b000a23b911a5b9cad7a50f0d005e94329281ad5e2ca9f43b807b08435813e75f240a37289cc2b5f545f223a52155bedfd4bfbe8d487bcb45d
6
+ metadata.gz: 182c6c027dd1571775ef37cf03d545f63d0f0749ab59921942ad6cb15e421a42efa260b7325de22858a656f9fedc0d41591b57ea959c17f742302f122b8949a3
7
+ data.tar.gz: 92c92e9bb2ebe62ed83f1fdaa223faa694fa93028dc583a3dfb653c0cda8de384d70f20aeec12571f6cd8dcf42fb76b02f479dd16d34aaf35ec0aafbad26d5d3
@@ -5,7 +5,15 @@ require 'aws-sdk-opensearchservice'
5
5
 
6
6
  module Dev
7
7
  class EndOfLife
8
+ # Class which queries several different AWS product types and
9
+ # returns ProductVersion entities which can be checked for EOL
8
10
  class Aws
11
+ # Queries and returns product versions for the default product types
12
+ def default_products
13
+ (elasticache_products + lambda_products + opensearch_products + rds_products).flatten.compact
14
+ end
15
+
16
+ # Queries and returns product versions for elasticache products
9
17
  def elasticache_products
10
18
  client = ::Aws::ElastiCache::Client.new
11
19
 
@@ -21,6 +29,7 @@ module Dev
21
29
  end
22
30
  end
23
31
 
32
+ # Queries and returns product versions for lambda products
24
33
  def lambda_products
25
34
  client = ::Aws::Lambda::Client.new
26
35
 
@@ -28,7 +37,6 @@ module Dev
28
37
  Dev::Aws.each_page(client, :list_functions) do |response|
29
38
  response.functions.each do |function|
30
39
  # Runtime is empty if using a docker image
31
- # TODO Should we still handle this case?
32
40
  next unless function.runtime
33
41
 
34
42
  name = function.function_name
@@ -40,6 +48,7 @@ module Dev
40
48
  end
41
49
  end
42
50
 
51
+ # Queries and returns product versions for opensearch products
43
52
  def opensearch_products
44
53
  client = ::Aws::OpenSearchService::Client.new
45
54
 
@@ -55,11 +64,13 @@ module Dev
55
64
  end
56
65
  end
57
66
 
67
+ # Queries and returns product versions for rds products
58
68
  def rds_products
59
- _rds_instances + _rds_clusters
69
+ rds_instance_products + rds_cluster_products
60
70
  end
61
71
 
62
- def _rds_instances
72
+ # Queries and returns product versions for rds instance products
73
+ def rds_instance_products
63
74
  aws_engines = %w(mysql postgresql)
64
75
  client = ::Aws::RDS::Client.new
65
76
 
@@ -80,7 +91,8 @@ module Dev
80
91
  end
81
92
  end
82
93
 
83
- def _rds_clusters
94
+ # Queries and returns product versions for rds cluster products
95
+ def rds_cluster_products
84
96
  aws_engines = %w(mysql postgresql)
85
97
  client = ::Aws::RDS::Client.new
86
98
 
@@ -108,12 +108,7 @@ module Dev
108
108
  account_name = Dev::Aws::Account.new.name_by_account(account_id)
109
109
  LOG.info " Current AWS Account is #{account_name} (#{account_id})".light_yellow
110
110
 
111
- versions = Dev::EndOfLife::Aws.new.elasticache_products +
112
- Dev::EndOfLife::Aws.new.lambda_products +
113
- Dev::EndOfLife::Aws.new.opensearch_products +
114
- Dev::EndOfLife::Aws.new.rds_products
115
-
116
- Dev::EndOfLife.new(product_versions: versions.compact).check
111
+ Dev::EndOfLife.new(product_versions: Dev::EndOfLife::Aws.new.default_products).check
117
112
  end
118
113
  end
119
114
  end
@@ -6,6 +6,6 @@ module Dev
6
6
  # Use 'v.v.v.pre.alpha.v' for pre-release vesions
7
7
  # Use 'v.v.v.beta.v for beta versions
8
8
  # Use semantic versioning for any releases (https://semver.org/)
9
- VERSION = '2.1.12.pre.alpha.2'.freeze
9
+ VERSION = '2.1.12'.freeze
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firespring_dev_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.12.pre.alpha.2
4
+ version: 2.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-10 00:00:00.000000000 Z
11
+ date: 2023-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -399,9 +399,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
399
399
  version: '3.1'
400
400
  required_rubygems_version: !ruby/object:Gem::Requirement
401
401
  requirements:
402
- - - ">"
402
+ - - ">="
403
403
  - !ruby/object:Gem::Version
404
- version: 1.3.1
404
+ version: '0'
405
405
  requirements: []
406
406
  rubygems_version: 3.4.10
407
407
  signing_key: