fog-brightbox 0.7.2 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/lib/fog/brightbox.rb +38 -3
  4. data/lib/fog/brightbox/compute.rb +0 -6
  5. data/lib/fog/brightbox/compute/shared.rb +0 -2
  6. data/lib/fog/brightbox/config.rb +0 -2
  7. data/lib/fog/brightbox/model.rb +0 -3
  8. data/lib/fog/brightbox/models/compute/account.rb +0 -2
  9. data/lib/fog/brightbox/models/compute/accounts.rb +0 -1
  10. data/lib/fog/brightbox/models/compute/api_client.rb +0 -2
  11. data/lib/fog/brightbox/models/compute/api_clients.rb +0 -1
  12. data/lib/fog/brightbox/models/compute/application.rb +0 -2
  13. data/lib/fog/brightbox/models/compute/applications.rb +0 -1
  14. data/lib/fog/brightbox/models/compute/cloud_ip.rb +1 -2
  15. data/lib/fog/brightbox/models/compute/cloud_ips.rb +0 -1
  16. data/lib/fog/brightbox/models/compute/collaboration.rb +0 -2
  17. data/lib/fog/brightbox/models/compute/collaborations.rb +0 -1
  18. data/lib/fog/brightbox/models/compute/database_server.rb +0 -3
  19. data/lib/fog/brightbox/models/compute/database_servers.rb +0 -1
  20. data/lib/fog/brightbox/models/compute/database_snapshot.rb +0 -1
  21. data/lib/fog/brightbox/models/compute/database_snapshots.rb +0 -1
  22. data/lib/fog/brightbox/models/compute/database_type.rb +0 -2
  23. data/lib/fog/brightbox/models/compute/database_types.rb +0 -1
  24. data/lib/fog/brightbox/models/compute/event.rb +0 -2
  25. data/lib/fog/brightbox/models/compute/events.rb +0 -1
  26. data/lib/fog/brightbox/models/compute/firewall_policies.rb +0 -1
  27. data/lib/fog/brightbox/models/compute/firewall_policy.rb +0 -2
  28. data/lib/fog/brightbox/models/compute/firewall_rule.rb +0 -2
  29. data/lib/fog/brightbox/models/compute/firewall_rules.rb +0 -1
  30. data/lib/fog/brightbox/models/compute/flavor.rb +0 -2
  31. data/lib/fog/brightbox/models/compute/flavors.rb +0 -1
  32. data/lib/fog/brightbox/models/compute/image.rb +0 -3
  33. data/lib/fog/brightbox/models/compute/images.rb +0 -1
  34. data/lib/fog/brightbox/models/compute/load_balancer.rb +0 -3
  35. data/lib/fog/brightbox/models/compute/load_balancers.rb +0 -1
  36. data/lib/fog/brightbox/models/compute/server.rb +0 -2
  37. data/lib/fog/brightbox/models/compute/server_group.rb +0 -2
  38. data/lib/fog/brightbox/models/compute/server_groups.rb +0 -1
  39. data/lib/fog/brightbox/models/compute/servers.rb +0 -1
  40. data/lib/fog/brightbox/models/compute/user.rb +0 -2
  41. data/lib/fog/brightbox/models/compute/user_collaboration.rb +0 -2
  42. data/lib/fog/brightbox/models/compute/user_collaborations.rb +0 -1
  43. data/lib/fog/brightbox/models/compute/users.rb +0 -1
  44. data/lib/fog/brightbox/models/compute/zone.rb +0 -2
  45. data/lib/fog/brightbox/models/compute/zones.rb +0 -1
  46. data/lib/fog/brightbox/models/storage/directories.rb +0 -1
  47. data/lib/fog/brightbox/models/storage/directory.rb +0 -1
  48. data/lib/fog/brightbox/models/storage/file.rb +0 -2
  49. data/lib/fog/brightbox/models/storage/files.rb +0 -1
  50. data/lib/fog/brightbox/storage.rb +0 -6
  51. data/lib/fog/brightbox/storage/{errors.rb → authentication_required.rb} +0 -3
  52. data/lib/fog/brightbox/storage/connection.rb +0 -3
  53. data/lib/fog/brightbox/storage/management_url_unknown.rb +8 -0
  54. data/lib/fog/brightbox/version.rb +1 -1
  55. metadata +4 -4
  56. data/lib/fog/brightbox/core.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19f50dbd6fab54d437c1b83755cbebeba0ae2086
4
- data.tar.gz: a4005908605f1d2fc9a754eb9250644ddc59fa08
3
+ metadata.gz: bc26a1e84e598ef68b0b5fbcabd7b03057c2cd50
4
+ data.tar.gz: 48e03f4c51600c6d7c367f6291bce1846a9fb5ac
5
5
  SHA512:
6
- metadata.gz: cafa999266123be2945077625739f96c9f63c207788ad6f4f4ff1ec6026dec89edea3c94d399dbec6066fd18a18ce2b514ee83b4e199082781e2279373b839d5
7
- data.tar.gz: 1a0f45971ad2c886ad0eb6c532431e604e1303bddbc88781ed024009ddb6df82990e15e4300f26cc2d1e7974d31f30c47f43e653d89117f130642661f032325f
6
+ metadata.gz: 34a67830a5a9b119e26755269691e10a55f0374c92c29a995faee18ef5662d2169a77142ef87c0b37dec5de2dbebd23146c93401449f63ff107f45666739431b
7
+ data.tar.gz: 6d89c9acdcb2c431b661179bf5aa383116cfbc6e60ba9644afc1cba55b8e98c3592a2f8b7e27ee9b0ad1fa39a6010f66009e028ce1859b2ec1462b2ad4104934
@@ -1,3 +1,10 @@
1
+ ### 0.8.0 / 2015-07-16
2
+
3
+ Changes:
4
+
5
+ * Add `CloudIp#fqdn` attribute
6
+ * Use relative paths and reduce requires
7
+
1
8
  ### 0.7.2 / 2015-06-25
2
9
 
3
10
  Bug fixes:
@@ -1,3 +1,6 @@
1
+ require "fog/core"
2
+ require "fog/json"
3
+
1
4
  # See the main fog gem for more details about the top level class {Fog}
2
5
  #
3
6
  # @see https://github.com/fog/fog
@@ -5,7 +8,39 @@
5
8
  # @see http://rubydoc.info/gems/fog
6
9
  #
7
10
  module Fog
8
- end
11
+ module Brightbox
12
+ extend Fog::Provider
13
+
14
+ service(:compute, "Compute")
15
+ service(:storage, "Storage")
16
+
17
+ module Compute
18
+ autoload :Config, File.expand_path("../brightbox/compute/config", __FILE__)
19
+ autoload :ImageSelector, File.expand_path("../brightbox/compute/image_selector", __FILE__)
20
+ autoload :ResourceLocking, File.expand_path("../brightbox/compute/resource_locking", __FILE__)
21
+ autoload :Shared, File.expand_path("../brightbox/compute/shared", __FILE__)
22
+ end
9
23
 
10
- require "fog/brightbox/compute"
11
- require "fog/brightbox/storage"
24
+ module Storage
25
+ autoload :AuthenticationRequest, File.expand_path("../brightbox/storage/authentication_request", __FILE__)
26
+ autoload :AuthenticationRequired, File.expand_path("../brightbox/storage/authentication_required", __FILE__)
27
+ autoload :Connection, File.expand_path("../brightbox/storage/connection", __FILE__)
28
+ autoload :Config, File.expand_path("../brightbox/storage/config", __FILE__)
29
+ autoload :ManagementUrlUnknown, File.expand_path("../brightbox/storage/management_url_unknown", __FILE__)
30
+ end
31
+
32
+ autoload :Config, File.expand_path("../brightbox/config", __FILE__)
33
+ autoload :LinkHelper, File.expand_path("../brightbox/link_helper", __FILE__)
34
+ autoload :Model, File.expand_path("../brightbox/model", __FILE__)
35
+ autoload :ModelHelper, File.expand_path("../brightbox/model_helper", __FILE__)
36
+ autoload :OAuth2, File.expand_path("../brightbox/oauth2", __FILE__)
37
+ end
38
+
39
+ module Compute
40
+ autoload :Brightbox, File.expand_path("../brightbox/compute", __FILE__)
41
+ end
42
+
43
+ module Storage
44
+ autoload :Brightbox, File.expand_path("../brightbox/storage", __FILE__)
45
+ end
46
+ end
@@ -1,9 +1,3 @@
1
- require "fog/brightbox/core"
2
- require "fog/brightbox/compute/config"
3
- require "fog/brightbox/compute/shared"
4
- require "fog/brightbox/compute/image_selector"
5
- require "fog/brightbox/link_helper"
6
-
7
1
  module Fog
8
2
  module Compute
9
3
  class Brightbox < Fog::Service
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/oauth2"
2
-
3
1
  module Fog
4
2
  module Brightbox
5
3
  module Compute
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/oauth2"
2
-
3
1
  module Fog
4
2
  module Brightbox
5
3
  # The {Fog::Brightbox::Config} class is designed to encapsulate a group of settings for reuse
@@ -1,6 +1,3 @@
1
- require "fog/core/model"
2
- require "fog/brightbox/model_helper"
3
-
4
1
  module Fog
5
2
  module Brightbox
6
3
  class Model < Fog::Model
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/account"
3
2
 
4
3
  module Fog
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/api_client"
3
2
 
4
3
  module Fog
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/application"
3
2
 
4
3
  module Fog
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -14,6 +12,7 @@ module Fog
14
12
 
15
13
  attribute :reverse_dns
16
14
  attribute :public_ip
15
+ attribute :fqdn
17
16
 
18
17
  # Links - to be replaced
19
18
  attribute :account_id, :aliases => "account", :squash => "id"
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/cloud_ip"
3
2
 
4
3
  module Fog
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/collaboration"
3
2
 
4
3
  module Fog
@@ -1,6 +1,3 @@
1
- require "fog/brightbox/model"
2
- require "fog/brightbox/compute/resource_locking"
3
-
4
1
  module Fog
5
2
  module Compute
6
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/database_server"
3
2
 
4
3
  module Fog
@@ -1,4 +1,3 @@
1
- require "fog/brightbox/model"
2
1
  require "fog/brightbox/compute/resource_locking"
3
2
 
4
3
  module Fog
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/database_snapshot"
3
2
 
4
3
  module Fog
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/database_type"
3
2
 
4
3
  module Fog
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/event"
3
2
 
4
3
  module Fog
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/firewall_policy"
3
2
 
4
3
  module Fog
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/firewall_rule"
3
2
 
4
3
  module Fog
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/flavor"
3
2
 
4
3
  module Fog
@@ -1,6 +1,3 @@
1
- require "fog/brightbox/model"
2
- require "fog/brightbox/compute/resource_locking"
3
-
4
1
  module Fog
5
2
  module Compute
6
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/image"
3
2
 
4
3
  module Fog
@@ -1,6 +1,3 @@
1
- require "fog/brightbox/model"
2
- require "fog/brightbox/compute/resource_locking"
3
-
4
1
  module Fog
5
2
  module Compute
6
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/load_balancer"
3
2
 
4
3
  module Fog
@@ -1,6 +1,4 @@
1
1
  require "fog/compute/models/server"
2
- require "fog/brightbox/compute/resource_locking"
3
- require "fog/brightbox/model_helper"
4
2
 
5
3
  module Fog
6
4
  module Compute
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/server_group"
3
2
 
4
3
  module Fog
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/server"
3
2
 
4
3
  module Fog
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/user_collaboration"
3
2
 
4
3
  module Fog
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/user"
3
2
 
4
3
  module Fog
@@ -1,5 +1,3 @@
1
- require "fog/brightbox/model"
2
-
3
1
  module Fog
4
2
  module Compute
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/compute/zone"
3
2
 
4
3
  module Fog
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/storage/directory"
3
2
 
4
3
  module Fog
@@ -1,4 +1,3 @@
1
- require "fog/core/model"
2
1
  require "fog/brightbox/models/storage/files"
3
2
 
4
3
  module Fog
@@ -1,5 +1,3 @@
1
- require "fog/core/model"
2
-
3
1
  module Fog
4
2
  module Storage
5
3
  class Brightbox
@@ -1,4 +1,3 @@
1
- require "fog/core/collection"
2
1
  require "fog/brightbox/models/storage/file"
3
2
 
4
3
  module Fog
@@ -1,9 +1,3 @@
1
- require "fog/brightbox/core"
2
- require "fog/brightbox/storage/errors"
3
- require "fog/brightbox/storage/config"
4
- require "fog/brightbox/storage/authentication_request"
5
- require "fog/brightbox/storage/connection"
6
-
7
1
  module Fog
8
2
  module Storage
9
3
  class Brightbox < Fog::Service
@@ -1,9 +1,6 @@
1
1
  module Fog
2
2
  module Brightbox
3
3
  module Storage
4
- class ManagementUrlUnknown < Fog::Errors::Error
5
- end
6
-
7
4
  class AuthenticationRequired < Fog::Errors::Error
8
5
  end
9
6
  end
@@ -1,6 +1,3 @@
1
- require "fog/core/connection"
2
- require "fog/brightbox/storage/errors"
3
-
4
1
  module Fog
5
2
  module Brightbox
6
3
  module Storage
@@ -0,0 +1,8 @@
1
+ module Fog
2
+ module Brightbox
3
+ module Storage
4
+ class ManagementUrlUnknown < Fog::Errors::Error
5
+ end
6
+ end
7
+ end
8
+ end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Brightbox
3
- VERSION = "0.7.2"
3
+ VERSION = "0.8.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-brightbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Thornthwaite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-25 00:00:00.000000000 Z
11
+ date: 2015-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -161,7 +161,6 @@ files:
161
161
  - lib/fog/brightbox/compute/resource_locking.rb
162
162
  - lib/fog/brightbox/compute/shared.rb
163
163
  - lib/fog/brightbox/config.rb
164
- - lib/fog/brightbox/core.rb
165
164
  - lib/fog/brightbox/link_helper.rb
166
165
  - lib/fog/brightbox/model.rb
167
166
  - lib/fog/brightbox/model_helper.rb
@@ -343,9 +342,10 @@ files:
343
342
  - lib/fog/brightbox/requests/storage/put_static_obj_manifest.rb
344
343
  - lib/fog/brightbox/storage.rb
345
344
  - lib/fog/brightbox/storage/authentication_request.rb
345
+ - lib/fog/brightbox/storage/authentication_required.rb
346
346
  - lib/fog/brightbox/storage/config.rb
347
347
  - lib/fog/brightbox/storage/connection.rb
348
- - lib/fog/brightbox/storage/errors.rb
348
+ - lib/fog/brightbox/storage/management_url_unknown.rb
349
349
  - lib/fog/brightbox/version.rb
350
350
  - spec/fog/brightbox/compute/config_spec.rb
351
351
  - spec/fog/brightbox/config_spec.rb
@@ -1,12 +0,0 @@
1
- require "fog/core"
2
- require "fog/json"
3
- require "fog/brightbox/config"
4
-
5
- module Fog
6
- module Brightbox
7
- extend Fog::Provider
8
-
9
- service(:compute, "Compute")
10
- service(:storage, "Storage")
11
- end
12
- end