mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[compute|brightbox] move brightbox compute to its own shared area (namespacing should probably be corrected)
This commit is contained in:
parent
5c6e40bd0c
commit
4002c9ff89
73 changed files with 12 additions and 11 deletions
|
@ -4,6 +4,7 @@ module Fog
|
||||||
module Brightbox
|
module Brightbox
|
||||||
extend Fog::Provider
|
extend Fog::Provider
|
||||||
|
|
||||||
service(:compute, 'compute/brightbox')
|
service(:compute, 'brightbox/compute')
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,7 +7,7 @@ module Fog
|
||||||
requires :brightbox_client_id, :brightbox_secret
|
requires :brightbox_client_id, :brightbox_secret
|
||||||
recognizes :brightbox_auth_url, :brightbox_api_url
|
recognizes :brightbox_auth_url, :brightbox_api_url
|
||||||
|
|
||||||
model_path 'fog/compute/models/brightbox'
|
model_path 'fog/brightbox/models/compute'
|
||||||
model :account # Singular resource, no collection
|
model :account # Singular resource, no collection
|
||||||
collection :servers
|
collection :servers
|
||||||
model :server
|
model :server
|
||||||
|
@ -24,7 +24,7 @@ module Fog
|
||||||
collection :users
|
collection :users
|
||||||
model :user
|
model :user
|
||||||
|
|
||||||
request_path 'fog/compute/requests/brightbox'
|
request_path 'fog/brightbox/requests/compute'
|
||||||
request :activate_console_server
|
request :activate_console_server
|
||||||
request :add_listeners_load_balancer
|
request :add_listeners_load_balancer
|
||||||
request :add_nodes_load_balancer
|
request :add_nodes_load_balancer
|
|
@ -1,5 +1,5 @@
|
||||||
require 'fog/core/collection'
|
require 'fog/core/collection'
|
||||||
require 'fog/compute/models/brightbox/cloud_ip'
|
require 'fog/brightbox/models/compute/cloud_ip'
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module Compute
|
module Compute
|
|
@ -1,5 +1,5 @@
|
||||||
require 'fog/core/collection'
|
require 'fog/core/collection'
|
||||||
require 'fog/compute/models/brightbox/flavor'
|
require 'fog/brightbox/models/compute/flavor'
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module Compute
|
module Compute
|
|
@ -1,5 +1,5 @@
|
||||||
require 'fog/core/collection'
|
require 'fog/core/collection'
|
||||||
require 'fog/compute/models/brightbox/image'
|
require 'fog/brightbox/models/compute/image'
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module Compute
|
module Compute
|
|
@ -1,5 +1,5 @@
|
||||||
require 'fog/core/collection'
|
require 'fog/core/collection'
|
||||||
require 'fog/compute/models/brightbox/load_balancer'
|
require 'fog/brightbox/models/compute/load_balancer'
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module Compute
|
module Compute
|
|
@ -1,5 +1,5 @@
|
||||||
require 'fog/core/collection'
|
require 'fog/core/collection'
|
||||||
require 'fog/compute/models/brightbox/server'
|
require 'fog/brightbox/models/compute/server'
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module Compute
|
module Compute
|
|
@ -1,5 +1,5 @@
|
||||||
require 'fog/core/collection'
|
require 'fog/core/collection'
|
||||||
require 'fog/compute/models/brightbox/user'
|
require 'fog/brightbox/models/compute/user'
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module Compute
|
module Compute
|
|
@ -1,5 +1,5 @@
|
||||||
require 'fog/core/collection'
|
require 'fog/core/collection'
|
||||||
require 'fog/compute/models/brightbox/zone'
|
require 'fog/brightbox/models/compute/zone'
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module Compute
|
module Compute
|
|
@ -15,7 +15,7 @@ module Fog
|
||||||
require 'fog/compute/bluebox'
|
require 'fog/compute/bluebox'
|
||||||
Fog::Compute::Bluebox.new(attributes)
|
Fog::Compute::Bluebox.new(attributes)
|
||||||
when :brightbox
|
when :brightbox
|
||||||
require 'fog/compute/brightbox'
|
require 'fog/brightbox/brightbox'
|
||||||
Fog::Compute::Brightbox.new(attributes)
|
Fog::Compute::Brightbox.new(attributes)
|
||||||
when :ecloud
|
when :ecloud
|
||||||
require 'fog/ecloud/compute'
|
require 'fog/ecloud/compute'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue