amazon-pricing 0.1.46 → 0.1.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/amazon-pricing/rds-instance-type.rb +1 -1
- data/lib/amazon-pricing/version.rb +1 -1
- data/lib/rds-price-list.rb +23 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmNiNmQ3MDE4Zjc2MWUxYjg1ZTUxMjI0YTkwOGJhZjBjOGJlNzE2Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDRmZjc5ZWVjMzEyYjY1NzYxOGU0YmM2OTIyNTcyODRkOWRkY2M1Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjY3YWQ5NjNhZWI0ZmUxZjFmOWY2MjhmYjNmNDAwNTI1YzU5NjA1NzQ3Yjhh
|
10
|
+
NjhhMTdlZjI2ZmJlZTA0ZjhmOTA4N2E4YTNjMWY1ZjM3Y2VmOGVlYzQ5Yzcw
|
11
|
+
NDBhMDcxNzY3NGRjZTg4NjQ4NjYxYmYyNWU2YmIzYjRhMDA3MTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzU1ZTc0MWYwMzUwNjBmNTQxMjVjNTM5YTQ0NWI1MDgxNzVlNzA3NGRlOTRm
|
14
|
+
MmMzMmIyNTYwZWViOGRkNjhiZjJkMDM0Zjk4NTlkMGM5MmU4YjAwNDAyYzMx
|
15
|
+
NjdkNjU5YTk0ZjE1Yjg4MjNhMjQ5YWNmNDQ1MzY0OTIwYTQwNzE=
|
data/lib/rds-price-list.rb
CHANGED
@@ -51,6 +51,14 @@ module AwsPricing
|
|
51
51
|
elsif db == :sqlserver
|
52
52
|
fetch_on_demand_rds_instance_pricing(RDS_BASE_URL+"#{db}/sqlserver-#{dp_type}-ondemand.min.js",:ondemand, db_type, is_byol, is_multi_az)
|
53
53
|
end
|
54
|
+
|
55
|
+
# Now repeat for legacy instances
|
56
|
+
if [:mysql, :postgresql, :oracle].include? db
|
57
|
+
fetch_on_demand_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/pricing-#{dp_type}-deployments.min.js",:ondemand, db_type, is_byol, is_multi_az)
|
58
|
+
elsif db == :sqlserver
|
59
|
+
fetch_on_demand_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/sqlserver-#{dp_type}-ondemand.min.js",:ondemand, db_type, is_byol, is_multi_az)
|
60
|
+
end
|
61
|
+
|
54
62
|
end
|
55
63
|
}
|
56
64
|
end
|
@@ -65,6 +73,13 @@ module AwsPricing
|
|
65
73
|
elsif db == :mysql
|
66
74
|
fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/pricing-#{res_type}-utilization-reserved-instances.min.js", res_type, db, false)
|
67
75
|
end
|
76
|
+
|
77
|
+
# Now repeat for legacy instances
|
78
|
+
if db == :postgresql and res_type == :heavy
|
79
|
+
fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/pricing-#{res_type}-utilization-reserved-instances.min.js", res_type, db, false)
|
80
|
+
elsif db == :mysql
|
81
|
+
fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/pricing-#{res_type}-utilization-reserved-instances.min.js", res_type, db, false)
|
82
|
+
end
|
68
83
|
end
|
69
84
|
else
|
70
85
|
@@RESERVED_DB_DEPLOY_TYPE[db].each {|db_type, db_instance|
|
@@ -76,6 +91,14 @@ module AwsPricing
|
|
76
91
|
elsif db == :sqlserver
|
77
92
|
fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/sqlserver-#{dp_type}-#{res_type}-ri.min.js", res_type, db_type, is_byol)
|
78
93
|
end
|
94
|
+
|
95
|
+
# Now repeat for legacy instances
|
96
|
+
if db == :oracle
|
97
|
+
fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/pricing-#{dp_type}-#{res_type}-utilization-reserved-instances.min.js", res_type, db_type, is_byol)
|
98
|
+
elsif db == :sqlserver
|
99
|
+
fetch_reserved_rds_instance_pricing(RDS_BASE_URL+"#{db}/previous-generation/sqlserver-#{dp_type}-#{res_type}-ri.min.js", res_type, db_type, is_byol)
|
100
|
+
end
|
101
|
+
|
79
102
|
end
|
80
103
|
end
|
81
104
|
}
|