conoha 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/conoha +3 -0
- data/lib/conoha.rb +6 -0
- data/lib/conoha/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: e6fb2275c7b8a0ad745c9a58c098a54aa154d9fc
|
4
|
+
data.tar.gz: f25a49bee97f120f50f2da13e05e6b65aa649553
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b472e30ac3f1d4ffe7976a9afe6f03b3b67d98f0069c82fc43c150512c5ac3aa248b60841c0175af6e1f2eb1e5bf58e9d4ff8cb9e16264511c36e75bca66c2f
|
7
|
+
data.tar.gz: 817669cbe7475fb4bb447b86315b02f574eea2f96831c78c0195f6240c62ef5c9713d95e9e9a3b68e324742c121432465a51db2501d690a93c7325348bfae5d6
|
data/exe/conoha
CHANGED
data/lib/conoha.rb
CHANGED
@@ -198,6 +198,12 @@ class Conoha
|
|
198
198
|
JSON.parse(res.body)["server"]["id"]
|
199
199
|
end
|
200
200
|
|
201
|
+
def self.name_tag(server_id)
|
202
|
+
uri = "https://compute.#{region}.conoha.io/v2/#{tenant_id}/servers/#{server_id}/metadata"
|
203
|
+
res = https_get uri, authtoken
|
204
|
+
JSON.parse(res.body)["metadata"]["instance_name_tag"]
|
205
|
+
end
|
206
|
+
|
201
207
|
private
|
202
208
|
|
203
209
|
@@config_loaded = false
|
data/lib/conoha/version.rb
CHANGED