brightbox-cli 4.6.0 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +1 -1
- data/CHANGELOG.md +9 -1
- data/Gemfile.lock +6 -6
- data/lib/brightbox-cli/detailed_server.rb +2 -0
- data/lib/brightbox-cli/version.rb +1 -1
- data/spec/cassettes/Brightbox_Server/_show/when_server_exists/shows_detailed_attributes_of_a_server.yml +44 -5
- data/spec/unit/brightbox/server/find_or_call_spec.rb +3 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7421a4af403275a028e9738bfd7a32b3d9ec9c747a0ea5ddfdf570e51a4cafdd
|
4
|
+
data.tar.gz: f36372d185741699dc9f53595cf5acf633457a2ba002d045e731f15d54f02799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3d2173640f650163f2602757c472174fe285f209c03d763aa8ca3e214ab67df5f94b1497abc8660675c7db2452b12b720ccaeb477ddaf2e3c5431a0b3d4e1f8
|
7
|
+
data.tar.gz: dd875beb01cbe080cf47fc4eeaadf6581a95671fdd3808972901d883c601df40cb23291d7fd3681b289025eb31f83c66011ae8eaa5981340f08f5fd9997e7afd
|
data/.github/workflows/ruby.yml
CHANGED
@@ -23,7 +23,7 @@ jobs:
|
|
23
23
|
ruby: ["2.5", "2.6", "2.7", "3.0", "3.1", "head"]
|
24
24
|
|
25
25
|
steps:
|
26
|
-
- uses: actions/checkout@
|
26
|
+
- uses: actions/checkout@v3
|
27
27
|
- name: Set up Ruby ${{ matrix.ruby }}
|
28
28
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
29
29
|
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
### v4.7.0 / 2024-01-03
|
2
|
+
|
3
|
+
[Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v4.6.0...v4.7.0)
|
4
|
+
|
5
|
+
Changes:
|
6
|
+
|
7
|
+
* Expose `image_username` to `servers show` output
|
8
|
+
|
1
9
|
### v4.6.0 / 2023-02-22
|
2
10
|
|
3
11
|
[Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v4.5.0...v4.6.0)
|
@@ -9,7 +17,7 @@ Changes:
|
|
9
17
|
* Remove `--source` option from `images register`. This was tied to the FTP
|
10
18
|
based registration which is no longer supported. Using `url` on a HTTP
|
11
19
|
source is now the preferred option for custom uploads.
|
12
|
-
* Update `mime-types-data` gem to
|
20
|
+
* Update `mime-types-data` gem to `3.2023.0218.1`
|
13
21
|
|
14
22
|
### v4.5.0 / 2023-02-08
|
15
23
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
brightbox-cli (4.
|
4
|
+
brightbox-cli (4.7.0)
|
5
5
|
dry-inflector (= 0.2.0)
|
6
6
|
fog-brightbox (>= 1.11.0)
|
7
7
|
fog-core (< 2.0)
|
@@ -20,12 +20,12 @@ GEM
|
|
20
20
|
ast (2.4.2)
|
21
21
|
builder (3.2.4)
|
22
22
|
coderay (1.1.3)
|
23
|
-
concurrent-ruby (1.2.
|
23
|
+
concurrent-ruby (1.2.2)
|
24
24
|
crack (0.4.5)
|
25
25
|
rexml
|
26
26
|
diff-lcs (1.5.0)
|
27
27
|
dry-inflector (0.2.0)
|
28
|
-
excon (0.
|
28
|
+
excon (0.108.0)
|
29
29
|
fog-brightbox (1.11.0)
|
30
30
|
dry-inflector
|
31
31
|
fog-core (>= 1.45, < 3.0)
|
@@ -38,16 +38,16 @@ GEM
|
|
38
38
|
fog-core
|
39
39
|
multi_json (~> 1.10)
|
40
40
|
formatador (0.3.0)
|
41
|
-
gli (2.21.
|
41
|
+
gli (2.21.1)
|
42
42
|
hashdiff (1.0.1)
|
43
43
|
highline (2.1.0)
|
44
44
|
hirb (0.7.3)
|
45
45
|
i18n (1.10.0)
|
46
46
|
concurrent-ruby (~> 1.0)
|
47
47
|
method_source (1.0.0)
|
48
|
-
mime-types (3.
|
48
|
+
mime-types (3.5.2)
|
49
49
|
mime-types-data (~> 3.2015)
|
50
|
-
mime-types-data (3.2023.
|
50
|
+
mime-types-data (3.2023.1205)
|
51
51
|
mocha (1.14.0)
|
52
52
|
multi_json (1.15.0)
|
53
53
|
parallel (1.22.1)
|
@@ -17,6 +17,7 @@ module Brightbox
|
|
17
17
|
if image
|
18
18
|
row_attributes[:image_name] = image.name
|
19
19
|
row_attributes[:arch] = image.arch
|
20
|
+
row_attributes[:image_username] = image.username
|
20
21
|
end
|
21
22
|
|
22
23
|
row_attributes[:private_ips] = interfaces.map { |i| i["ipv4_address"] }.join(", ")
|
@@ -65,6 +66,7 @@ module Brightbox
|
|
65
66
|
compatibility_mode
|
66
67
|
image
|
67
68
|
image_name
|
69
|
+
image_username
|
68
70
|
arch
|
69
71
|
private_ips
|
70
72
|
ipv6_address
|
@@ -82,7 +82,7 @@ http_interactions:
|
|
82
82
|
body:
|
83
83
|
encoding: UTF-8
|
84
84
|
string: '{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"medium
|
85
|
-
servers","status":"creating","hostname":"srv-12345","created_at":"2013-08-27T16:12:55Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":
|
85
|
+
servers","status":"creating","hostname":"srv-12345","created_at":"2013-08-27T16:12:55Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":"ubuntu","status":"available","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"xvifyx3u5s","status":"available","cores":2,"ram":3072,"disk_size":10240,"handle":"nano"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"},"cloud_ips":[],"interfaces":[{"id":"int-uehbk","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-uehbk","mac_address":"02:24:19:01:3a:72","ipv4_address":"10.1.58.114","ipv6_address":"2a02:1348:18c:4e9c:24:19ff:fe01:3a72"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
|
86
86
|
new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true}]}'
|
87
87
|
http_version:
|
88
88
|
recorded_at: Tue, 27 Aug 2013 16:12:55 GMT
|
@@ -123,7 +123,7 @@ http_interactions:
|
|
123
123
|
body:
|
124
124
|
encoding: UTF-8
|
125
125
|
string: '{"id":"srv-12345","resource_type":"server","url":"https://api.gb1.brightbox.com/1.0/servers/srv-12345","name":"medium
|
126
|
-
servers","status":"creating","hostname":"srv-12345","created_at":"2013-08-27T16:12:55Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":
|
126
|
+
servers","status":"creating","hostname":"srv-12345","created_at":"2013-08-27T16:12:55Z","started_at":null,"deleted_at":null,"user_data":null,"fqdn":"srv-12345.gb1.brightbox.com","compatibility_mode":false,"console_url":null,"console_token":null,"console_token_expires":null,"account":{"id":"acc-12345","resource_type":"account","url":"https://api.gb1.brightbox.com/1.0/accounts/acc-12345","name":"Avkruvviumpksysor","status":"active"},"image":{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","username":"ubuntu","status":"available","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"owner":"acc-12345"},"server_type":{"id":"typ-12345","resource_type":"server_type","url":"https://api.gb1.brightbox.com/1.0/server_types/typ-12345","name":"xvifyx3u5s","status":"available","cores":2,"ram":3072,"disk_size":10240,"handle":"nano"},"zone":{"id":"zon-12345","resource_type":"zone","url":"https://api.gb1.brightbox.com/1.0/zones/zon-12345","handle":"gb1-b"},"cloud_ips":[],"interfaces":[{"id":"int-uehbk","resource_type":"interface","url":"https://api.gb1.brightbox.com/1.0/interfaces/int-uehbk","mac_address":"02:24:19:01:3a:72","ipv4_address":"10.1.58.114","ipv6_address":"2a02:1348:18c:4e9c:24:19ff:fe01:3a72"}],"snapshots":[],"server_groups":[{"id":"grp-12345","resource_type":"server_group","url":"https://api.gb1.brightbox.com/1.0/server_groups/grp-12345","name":"default","description":"All
|
127
127
|
new servers are added to this group unless specified otherwise.","created_at":"2013-08-27T15:47:00Z","default":true}]}'
|
128
128
|
http_version:
|
129
129
|
recorded_at: Tue, 27 Aug 2013 16:12:55 GMT
|
@@ -163,7 +163,7 @@ http_interactions:
|
|
163
163
|
- close
|
164
164
|
body:
|
165
165
|
encoding: UTF-8
|
166
|
-
string: '{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","status":"available","username":
|
166
|
+
string: '{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","status":"available","username":"ubuntu","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"compatibility_mode":false,"source_type":"upload","disk_size":0,"virtual_size":0,"min_ram":null,"owner":"acc-12345","licence_name":"","ancestor":null}'
|
167
167
|
http_version:
|
168
168
|
recorded_at: Tue, 27 Aug 2013 16:12:56 GMT
|
169
169
|
- request:
|
@@ -202,7 +202,7 @@ http_interactions:
|
|
202
202
|
- close
|
203
203
|
body:
|
204
204
|
encoding: UTF-8
|
205
|
-
string: '{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","status":"available","username":
|
205
|
+
string: '{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","status":"available","username":"ubuntu","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"compatibility_mode":false,"source_type":"upload","disk_size":0,"virtual_size":0,"min_ram":null,"owner":"acc-12345","licence_name":"","ancestor":null}'
|
206
206
|
http_version:
|
207
207
|
recorded_at: Tue, 27 Aug 2013 16:12:56 GMT
|
208
208
|
- request:
|
@@ -241,7 +241,46 @@ http_interactions:
|
|
241
241
|
- close
|
242
242
|
body:
|
243
243
|
encoding: UTF-8
|
244
|
-
string: '{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","status":"available","username":
|
244
|
+
string: '{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","status":"available","username":"ubuntu","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"compatibility_mode":false,"source_type":"upload","disk_size":0,"virtual_size":0,"min_ram":null,"owner":"acc-12345","licence_name":"","ancestor":null}'
|
245
|
+
http_version:
|
246
|
+
recorded_at: Tue, 27 Aug 2013 16:12:56 GMT
|
247
|
+
- request:
|
248
|
+
method: get
|
249
|
+
uri: http://api.brightbox.localhost/1.0/images/img-12345?account_id=acc-12345
|
250
|
+
body:
|
251
|
+
encoding: US-ASCII
|
252
|
+
string: ''
|
253
|
+
headers:
|
254
|
+
User-Agent:
|
255
|
+
- fog/1.15.0
|
256
|
+
Authorization:
|
257
|
+
- OAuth 63a4f6dbf53263e7468d3084ae9c50ecdcdf1714
|
258
|
+
Content-Type:
|
259
|
+
- application/json
|
260
|
+
response:
|
261
|
+
status:
|
262
|
+
code: 200
|
263
|
+
message:
|
264
|
+
headers:
|
265
|
+
Content-Type:
|
266
|
+
- application/json; charset=utf-8
|
267
|
+
X-UA-Compatible:
|
268
|
+
- IE=Edge
|
269
|
+
ETag:
|
270
|
+
- '"a9f069f869a9f04d6409baccc7c3419c"'
|
271
|
+
Cache-Control:
|
272
|
+
- max-age=0, private, must-revalidate
|
273
|
+
X-Request-Id:
|
274
|
+
- f33528d490370463e185c3753e8c3ca8
|
275
|
+
X-Runtime:
|
276
|
+
- '0.101272'
|
277
|
+
Date:
|
278
|
+
- Tue, 27 Aug 2013 16:12:56 GMT
|
279
|
+
Connection:
|
280
|
+
- close
|
281
|
+
body:
|
282
|
+
encoding: UTF-8
|
283
|
+
string: '{"id":"img-12345","resource_type":"image","url":"https://api.gb1.brightbox.com/1.0/images/img-12345","name":"dmcuhmirtoevr8bvye46opwd","status":"available","username":"ubuntu","description":"","source":"46i5i7onyfz8yf5o5nepaohs","arch":"x86_64","created_at":"2013-08-27T15:46:50Z","official":true,"public":true,"compatibility_mode":false,"source_type":"upload","disk_size":0,"virtual_size":0,"min_ram":null,"owner":"acc-12345","licence_name":"","ancestor":null}'
|
245
284
|
http_version:
|
246
285
|
recorded_at: Tue, 27 Aug 2013 16:12:56 GMT
|
247
286
|
- request:
|
@@ -29,6 +29,9 @@ describe Brightbox::Server do
|
|
29
29
|
expect(output.stdout).to include("hostname: #{@server.id}")
|
30
30
|
expect(output.stdout).to include("ipv6_hostname: ipv6.#{@server.id}.gb1.brightbox.com")
|
31
31
|
expect(output.stdout).to include("fqdn: #{@server.id}.gb1.brightbox.com")
|
32
|
+
|
33
|
+
expect(output.stdout).to include("image: img-12345")
|
34
|
+
expect(output.stdout).to include("image_username: ubuntu")
|
32
35
|
end
|
33
36
|
end
|
34
37
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brightbox-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Leach
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-01-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog-brightbox
|
@@ -819,7 +819,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
819
819
|
- !ruby/object:Gem::Version
|
820
820
|
version: '0'
|
821
821
|
requirements: []
|
822
|
-
rubygems_version: 3.
|
822
|
+
rubygems_version: 3.4.10
|
823
823
|
signing_key:
|
824
824
|
specification_version: 4
|
825
825
|
summary: The Brightbox cloud management system
|