mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[compute|libvirt] move libvirt compute to its own shared area (namespacing should probably be corrected)
This commit is contained in:
parent
df9072f4d9
commit
529591f772
23 changed files with 16 additions and 17 deletions
|
@ -23,6 +23,9 @@ module Fog
|
|||
when :gogrid
|
||||
require 'fog/go_grid/compute'
|
||||
Fog::Compute::GoGrid.new(attributes)
|
||||
when :libvirt
|
||||
require 'fog/libvirt/compute'
|
||||
Fog::Compute::Libvirt.new(attributes)
|
||||
when :linode
|
||||
require 'fog/linode/compute'
|
||||
Fog::Compute::Linode.new(attributes)
|
||||
|
@ -47,9 +50,6 @@ module Fog
|
|||
when :virtualbox
|
||||
require 'fog/virtual_box/compute'
|
||||
Fog::Compute::VirtualBox.new(attributes)
|
||||
when :libvirt
|
||||
require 'fog/compute/libvirt'
|
||||
Fog::Compute::Libvirt.new(attributes)
|
||||
when :voxel
|
||||
require 'fog/voxel/compute'
|
||||
Fog::Compute::Voxel.new(attributes)
|
||||
|
|
|
@ -5,7 +5,7 @@ module Fog
|
|||
|
||||
extend Fog::Provider
|
||||
|
||||
service(:compute, 'compute/libvirt')
|
||||
service(:compute, 'libvirt/compute')
|
||||
|
||||
end
|
||||
end
|
|
@ -1,4 +1,4 @@
|
|||
require 'fog/compute/models/libvirt/uri'
|
||||
require 'fog/libvirt/models/compute/uri'
|
||||
|
||||
module Fog
|
||||
module Compute
|
||||
|
@ -6,7 +6,7 @@ module Fog
|
|||
|
||||
requires :libvirt_uri
|
||||
|
||||
model_path 'fog/compute/models/libvirt'
|
||||
model_path 'fog/libvirt/models/compute'
|
||||
model :server
|
||||
collection :servers
|
||||
model :network
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/compute/models/libvirt/interface'
|
||||
require 'fog/libvirt/models/compute/interface'
|
||||
|
||||
module Fog
|
||||
module Compute
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/model'
|
||||
require 'fog/compute/models/libvirt/util'
|
||||
require 'fog/libvirt/models/compute/util'
|
||||
|
||||
module Fog
|
||||
module Compute
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/compute/models/libvirt/network'
|
||||
require 'fog/libvirt/models/compute/network'
|
||||
|
||||
module Fog
|
||||
module Compute
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/compute/models/libvirt/node'
|
||||
require 'fog/libvirt/models/compute/node'
|
||||
|
||||
module Fog
|
||||
module Compute
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/compute/models/libvirt/pool'
|
||||
require 'fog/libvirt/models/compute/pool'
|
||||
|
||||
module Fog
|
||||
module Compute
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/model'
|
||||
require 'fog/compute/models/libvirt/util'
|
||||
require 'fog/libvirt/models/compute/util'
|
||||
require 'net/ssh/proxy/command'
|
||||
require 'rexml/document'
|
||||
require 'erb'
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/compute/models/libvirt/server'
|
||||
require 'fog/libvirt/models/compute/server'
|
||||
|
||||
module Fog
|
||||
module Compute
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/model'
|
||||
require 'fog/compute/models/libvirt/util'
|
||||
require 'fog/libvirt/models/compute/util'
|
||||
require 'rexml/document'
|
||||
require 'erb'
|
||||
require 'securerandom'
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/compute/models/libvirt/volume'
|
||||
require 'fog/libvirt/models/compute/volume'
|
||||
|
||||
module Fog
|
||||
module Compute
|
|
@ -15,6 +15,7 @@ require 'fog/dynect'
|
|||
require 'fog/ecloud'
|
||||
require 'fog/go_grid'
|
||||
require 'fog/google'
|
||||
require 'fog/libvirt'
|
||||
require 'fog/linode'
|
||||
require 'fog/local'
|
||||
require 'fog/new_servers'
|
||||
|
@ -26,5 +27,3 @@ require 'fog/vcloud'
|
|||
require 'fog/virtual_box'
|
||||
require 'fog/voxel'
|
||||
require 'fog/zerigo'
|
||||
|
||||
require 'fog/providers/libvirt'
|
||||
|
|
Loading…
Reference in a new issue