cloudcost 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +12 -0
- data/lib/cloudcost/server_list.rb +2 -2
- data/lib/cloudcost/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b79b93bfa4a348fdc4d6990402400ebf709ff1cb9c8a105816f39beefc5209f4
|
4
|
+
data.tar.gz: 281358b34a8c77704a074fa9399b6b9d0f1ffda9d7ca96a4d3b30f6ad40794a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0541d3c1e6904a79903b45980b4fd5de642f01da8df6bfd3e038f5f0f18e9bbb33d46cbf58f2898f249f9757297609be7e03ec5e5674b8a047bd1bb2840e4761
|
7
|
+
data.tar.gz: 93562d90574c73387a5cd6d57637e36836cc480fd045c03ac3459331028cf6b0c16886c9642f403a6adacffdc77cf3021eb20995fa102ae664510dfc70b12f6e
|
data/Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
FROM ruby:3.0-alpine
|
2
|
+
|
3
|
+
ARG INFLUX_RELEASE=influxdb2-client-2.1.0-linux-amd64.tar.gz
|
4
|
+
|
5
|
+
RUN apk --no-cache add wget \
|
6
|
+
&& gem install cloudcost \
|
7
|
+
&& wget https://dl.influxdata.com/influxdb/releases/$INFLUX_RELEASE \
|
8
|
+
&& tar xvfz $INFLUX_RELEASE -C /usr/local/bin --strip-components=1 \
|
9
|
+
&& rm -f $INFLUX_RELEASE
|
10
|
+
|
11
|
+
ENTRYPOINT [ "cloudcost" ]
|
12
|
+
CMD [ "help" ]
|
@@ -111,9 +111,9 @@ module Cloudcost
|
|
111
111
|
{ field: "memory_gb", position: 3, unit: "i" },
|
112
112
|
{ field: "ssd_gb", position: 4, unit: "i" },
|
113
113
|
{ field: "bulk_gb", position: 5, unit: "i" },
|
114
|
-
{ field: "
|
114
|
+
{ field: "chf_per_day", position: 6, unit: "" },
|
115
115
|
].each do |field|
|
116
|
-
lines << "cloudscaleServerCosts,
|
116
|
+
lines << "cloudscaleServerCosts,group=#{row[0]},profile=#{@options[:profile] || "?"} #{field[:field]}=#{row[field[:position]]}#{field[:unit]}"
|
117
117
|
end
|
118
118
|
end
|
119
119
|
lines.join("\n")
|
data/lib/cloudcost/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudcost
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nik Wolfgramm
|
@@ -89,6 +89,7 @@ extra_rdoc_files: []
|
|
89
89
|
files:
|
90
90
|
- ".gitignore"
|
91
91
|
- ".rubocop.yml"
|
92
|
+
- Dockerfile
|
92
93
|
- Gemfile
|
93
94
|
- Gemfile.lock
|
94
95
|
- LICENSE
|