joyent-cloud-pricing 1.0.5 → 1.0.6
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 +4 -4
- data/README.md +16 -14
- data/lib/pricing/flavor.rb +6 -7
- data/lib/pricing/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b380b01b5301c09ce4946aed2d0d55879ea978a
|
|
4
|
+
data.tar.gz: 1eddbc97807b98e7e7ec1144226e47e61fef5414
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bba5bd633fa5e1d02037487c549d130bb43cf8b473c33544e623aea153e3a71fdc17ec8f0a395c31fe2efcd79fc4f5e3ee6bb3db29dceba3169120d23c5f2c62
|
|
7
|
+
data.tar.gz: 3ab4786f322d28b6077395eb2042a51ae079d78b88230ba5069745f0b43fe2314b49cda55208e0b58067c18cca224096201b1b05365d019c483d5f48705e8fd1
|
data/README.md
CHANGED
|
@@ -146,35 +146,37 @@ ZONE COUNTS:
|
|
|
146
146
|
Total # of zones 33
|
|
147
147
|
Total # of reserved zones 27
|
|
148
148
|
Total # of reserved but absent zones 1
|
|
149
|
-
Reserve Pricing Term/Duration (years) 1
|
|
150
|
-
.................................................................
|
|
151
149
|
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
Resources in use: Reserved On-Demand Total
|
|
151
|
+
CPUs 384 118 494
|
|
152
|
+
RAM 828G 140G 907G
|
|
153
|
+
DISK 23T 5T 27T
|
|
154
154
|
.................................................................
|
|
155
155
|
|
|
156
156
|
MONTHLY COSTS:
|
|
157
|
-
List of on-demand flavors by price
|
|
157
|
+
List of on-demand flavors by price (in excess of reserve)
|
|
158
158
|
2 x g3-highcpu-32-smartos-cc $3,339.36
|
|
159
159
|
2 x g3-highcpu-16-smartos $1,670.40
|
|
160
160
|
2 x g3-highcpu-7-smartos $731.52
|
|
161
161
|
1 x g3-standard-30-smartos $691.20
|
|
162
162
|
___________
|
|
163
|
-
On
|
|
164
|
-
|
|
165
|
-
Zones Under Reserve Pricing $8,720.00
|
|
163
|
+
On demand monthly $6,432.48
|
|
164
|
+
Zones under reserve pricing $8,720.00
|
|
166
165
|
___________
|
|
167
166
|
Total $15,152.48
|
|
168
167
|
.................................................................
|
|
169
168
|
|
|
170
169
|
YEARLY COSTS:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
Reserve Yearly $203,240.00
|
|
175
|
-
On Demand Yearly $77,189.76
|
|
170
|
+
On demand yearly $77,189.76
|
|
171
|
+
Reserve prepay one time fee $98,600.00
|
|
172
|
+
Reserve monthly fees $104,640.00
|
|
176
173
|
___________
|
|
177
174
|
Total $280,429.76
|
|
175
|
+
|
|
176
|
+
YEARLY RESERVE SAVINGS:
|
|
177
|
+
Savings due to reserved pricing $145,522.24
|
|
178
|
+
Savings % 34%
|
|
179
|
+
.................................................................
|
|
178
180
|
```
|
|
179
181
|
|
|
180
182
|
## Contributing
|
|
@@ -193,4 +195,4 @@ library. Use at your own risk.
|
|
|
193
195
|
|
|
194
196
|
## Author
|
|
195
197
|
|
|
196
|
-
Konstantin Gredeskoul, [@kig on twitter](http://twitter.com/kig), [@kigster on github](http://github.com/kigster)
|
|
198
|
+
* Konstantin Gredeskoul, [@kig on twitter](http://twitter.com/kig), [@kigster on github](http://github.com/kigster)
|
data/lib/pricing/flavor.rb
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
module Joyent::Cloud::Pricing
|
|
2
2
|
class Flavor
|
|
3
3
|
attr_accessor :name, :os, :cost, :ram, :cpus, :disk
|
|
4
|
-
|
|
5
|
-
def initialize(name, os: os, cost: cost, ram: ram, cpus: cpus, disk: disk)
|
|
4
|
+
def initialize(name, options = {})
|
|
6
5
|
@name = name
|
|
7
|
-
@os = os
|
|
8
|
-
@cost = (cost == 'N/A') ? nil : cost.to_f
|
|
9
|
-
@cpus = cpus.to_f
|
|
10
|
-
@disk = disk.to_i
|
|
11
|
-
@ram = ram.to_f
|
|
6
|
+
@os = options[:os]
|
|
7
|
+
@cost = (options[:cost] == 'N/A') ? nil : options[:cost].to_f
|
|
8
|
+
@cpus = options[:cpus].to_f
|
|
9
|
+
@disk = options[:disk].to_i
|
|
10
|
+
@ram = options[:ram].to_f
|
|
12
11
|
end
|
|
13
12
|
|
|
14
13
|
def to_h
|
data/lib/pricing/version.rb
CHANGED