fog-brightbox 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/fog/brightbox/models/compute/image.rb +9 -3
- data/lib/fog/brightbox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1061e46a1ab7bab3542b35bd9a37f966370f5ab44c98d9ce003c56aecabbea47
|
4
|
+
data.tar.gz: '09abdac10bca6dbafddf1a7931d0243456caf605c62757e05353b9f8611bf9ab'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b587653fc85f39d14e3a9a46bdbff8d83b79046f3fa9baf9de12258db58d3e03c68e22b8930c409c3c5fa2209fc04606fd2d9089737321aaf28bff1c66c3e79f
|
7
|
+
data.tar.gz: eff1f83c2b30a808b6b569e73c321788838c2887a9844a129137789c0052fb260e613c71497bc73733d922381d8759615284407c13fc514b1c650adff255f326
|
data/CHANGELOG.md
CHANGED
@@ -14,13 +14,16 @@ module Fog
|
|
14
14
|
|
15
15
|
attribute :arch
|
16
16
|
attribute :disk_size, type: :integer
|
17
|
+
attribute :http_url
|
17
18
|
attribute :licence_name
|
18
19
|
attribute :min_ram, type: :integer
|
20
|
+
attribute :server
|
19
21
|
attribute :source
|
20
22
|
attribute :source_trigger
|
21
23
|
attribute :source_type
|
22
24
|
attribute :username
|
23
25
|
attribute :virtual_size, type: :integer
|
26
|
+
attribute :volume
|
24
27
|
|
25
28
|
# Boolean flags
|
26
29
|
attribute :compatibility_mode, type: :boolean
|
@@ -40,13 +43,16 @@ module Fog
|
|
40
43
|
|
41
44
|
def save
|
42
45
|
raise Fog::Errors::Error.new("Resaving an existing object may create a duplicate") if persisted?
|
43
|
-
|
46
|
+
|
44
47
|
options = {
|
45
|
-
:source => source,
|
46
48
|
:arch => arch,
|
49
|
+
:description => description,
|
50
|
+
:http_url => http_url,
|
47
51
|
:name => name,
|
52
|
+
:server => server,
|
53
|
+
:source => source,
|
48
54
|
:username => username,
|
49
|
-
:
|
55
|
+
:volume => volume
|
50
56
|
}.delete_if { |_k, v| v.nil? || v == "" }
|
51
57
|
data = service.create_image(options)
|
52
58
|
merge_attributes(data)
|