1
0
Fork 0
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:
geemus 2011-08-29 10:24:39 -05:00
parent df9072f4d9
commit 529591f772
23 changed files with 16 additions and 17 deletions

View file

@ -23,6 +23,9 @@ module Fog
when :gogrid when :gogrid
require 'fog/go_grid/compute' require 'fog/go_grid/compute'
Fog::Compute::GoGrid.new(attributes) Fog::Compute::GoGrid.new(attributes)
when :libvirt
require 'fog/libvirt/compute'
Fog::Compute::Libvirt.new(attributes)
when :linode when :linode
require 'fog/linode/compute' require 'fog/linode/compute'
Fog::Compute::Linode.new(attributes) Fog::Compute::Linode.new(attributes)
@ -47,9 +50,6 @@ module Fog
when :virtualbox when :virtualbox
require 'fog/virtual_box/compute' require 'fog/virtual_box/compute'
Fog::Compute::VirtualBox.new(attributes) Fog::Compute::VirtualBox.new(attributes)
when :libvirt
require 'fog/compute/libvirt'
Fog::Compute::Libvirt.new(attributes)
when :voxel when :voxel
require 'fog/voxel/compute' require 'fog/voxel/compute'
Fog::Compute::Voxel.new(attributes) Fog::Compute::Voxel.new(attributes)

View file

@ -5,7 +5,7 @@ module Fog
extend Fog::Provider extend Fog::Provider
service(:compute, 'compute/libvirt') service(:compute, 'libvirt/compute')
end end
end end

View file

@ -1,4 +1,4 @@
require 'fog/compute/models/libvirt/uri' require 'fog/libvirt/models/compute/uri'
module Fog module Fog
module Compute module Compute
@ -6,7 +6,7 @@ module Fog
requires :libvirt_uri requires :libvirt_uri
model_path 'fog/compute/models/libvirt' model_path 'fog/libvirt/models/compute'
model :server model :server
collection :servers collection :servers
model :network model :network

View file

@ -1,5 +1,5 @@
require 'fog/core/collection' require 'fog/core/collection'
require 'fog/compute/models/libvirt/interface' require 'fog/libvirt/models/compute/interface'
module Fog module Fog
module Compute module Compute

View file

@ -1,5 +1,5 @@
require 'fog/core/model' require 'fog/core/model'
require 'fog/compute/models/libvirt/util' require 'fog/libvirt/models/compute/util'
module Fog module Fog
module Compute module Compute

View file

@ -1,5 +1,5 @@
require 'fog/core/collection' require 'fog/core/collection'
require 'fog/compute/models/libvirt/network' require 'fog/libvirt/models/compute/network'
module Fog module Fog
module Compute module Compute

View file

@ -1,5 +1,5 @@
require 'fog/core/collection' require 'fog/core/collection'
require 'fog/compute/models/libvirt/node' require 'fog/libvirt/models/compute/node'
module Fog module Fog
module Compute module Compute

View file

@ -1,5 +1,5 @@
require 'fog/core/collection' require 'fog/core/collection'
require 'fog/compute/models/libvirt/pool' require 'fog/libvirt/models/compute/pool'
module Fog module Fog
module Compute module Compute

View file

@ -1,5 +1,5 @@
require 'fog/core/model' require 'fog/core/model'
require 'fog/compute/models/libvirt/util' require 'fog/libvirt/models/compute/util'
require 'net/ssh/proxy/command' require 'net/ssh/proxy/command'
require 'rexml/document' require 'rexml/document'
require 'erb' require 'erb'

View file

@ -1,5 +1,5 @@
require 'fog/core/collection' require 'fog/core/collection'
require 'fog/compute/models/libvirt/server' require 'fog/libvirt/models/compute/server'
module Fog module Fog
module Compute module Compute

View file

@ -1,5 +1,5 @@
require 'fog/core/model' require 'fog/core/model'
require 'fog/compute/models/libvirt/util' require 'fog/libvirt/models/compute/util'
require 'rexml/document' require 'rexml/document'
require 'erb' require 'erb'
require 'securerandom' require 'securerandom'

View file

@ -1,5 +1,5 @@
require 'fog/core/collection' require 'fog/core/collection'
require 'fog/compute/models/libvirt/volume' require 'fog/libvirt/models/compute/volume'
module Fog module Fog
module Compute module Compute

View file

@ -15,6 +15,7 @@ require 'fog/dynect'
require 'fog/ecloud' require 'fog/ecloud'
require 'fog/go_grid' require 'fog/go_grid'
require 'fog/google' require 'fog/google'
require 'fog/libvirt'
require 'fog/linode' require 'fog/linode'
require 'fog/local' require 'fog/local'
require 'fog/new_servers' require 'fog/new_servers'
@ -26,5 +27,3 @@ require 'fog/vcloud'
require 'fog/virtual_box' require 'fog/virtual_box'
require 'fog/voxel' require 'fog/voxel'
require 'fog/zerigo' require 'fog/zerigo'
require 'fog/providers/libvirt'