hetzner 0.0.13 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hetzner/client.rb +5 -5
- data/lib/hetzner/commands/servers.rb +4 -0
- data/lib/hetzner/version.rb +1 -1
- 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: 417250f33d174488ff2e82c8492b4fd7d78e671ce61864c9406b7999632242d0
|
4
|
+
data.tar.gz: 9f723d5e347e711ff3b636ecdfc2f1cd5dd06ce51d9b2398530391f956c4b749
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaf61595620306167b90f031fc108da683f247a2f40d182c21550f03695f204d96d2f5478613cd1c1dcf33d48320a1669b58c00b24713fcade1bcd76c9df9a3f
|
7
|
+
data.tar.gz: d94896ec6903e5f3276920517578f672a79d8de22088f03ce775be229f248e64d78fc787d3181a5198522e21d21d84926255c96ee89c4a9339aa3199b8171100
|
data/lib/hetzner/client.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require "faraday"
|
3
3
|
require "oj"
|
4
|
-
Dir[
|
4
|
+
Dir[File.join(__dir__, 'commands', '*.rb')].each { |f| require f }
|
5
5
|
|
6
6
|
module Hetzner
|
7
7
|
class Client
|
@@ -23,13 +23,13 @@ module Hetzner
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
def get(endpoint
|
27
|
-
response = client.
|
26
|
+
def get(endpoint)
|
27
|
+
response = client.get(endpoint)
|
28
28
|
Oj.load(response.body)
|
29
29
|
end
|
30
30
|
|
31
|
-
def post(endpoint,
|
32
|
-
response = client.
|
31
|
+
def post(endpoint, body)
|
32
|
+
response = client.post(endpoint, body.to_json, "Content-Type" => "application/json")
|
33
33
|
Oj.load(response.body)
|
34
34
|
end
|
35
35
|
end
|
data/lib/hetzner/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hetzner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abe Shalash
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|