mirror of
				https://github.com/fog/fog.git
				synced 2022-11-09 13:51:43 -05:00 
			
		
		
		
	[compute|slicehost] move slicehost compute to its own shared area (namespacing should probably be corrected)
This commit is contained in:
		
							parent
							
								
									eff5e70e7d
								
							
						
					
					
						commit
						01238bc720
					
				
					 27 changed files with 16 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -36,7 +36,7 @@ module Fog
 | 
			
		|||
        require 'fog/rackspace/compute'
 | 
			
		||||
        Fog::Compute::Rackspace.new(attributes)
 | 
			
		||||
      when :slicehost
 | 
			
		||||
        require 'fog/compute/slicehost'
 | 
			
		||||
        require 'fog/slicehost/compute'
 | 
			
		||||
        Fog::Compute::Slicehost.new(attributes)
 | 
			
		||||
      when :stormondemand
 | 
			
		||||
        require 'fog/storm_on_demand/compute'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,8 +5,8 @@ module Fog
 | 
			
		|||
 | 
			
		||||
    extend Fog::Provider
 | 
			
		||||
 | 
			
		||||
    service(:compute, 'compute/slicehost')
 | 
			
		||||
    service(:dns,     'slicehost/slicehost')
 | 
			
		||||
    service(:compute, 'slicehost/compute')
 | 
			
		||||
    service(:dns,     'slicehost/dns')
 | 
			
		||||
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@ module Fog
 | 
			
		|||
      requires :slicehost_password
 | 
			
		||||
      recognizes :host, :port, :scheme, :persistent
 | 
			
		||||
 | 
			
		||||
      model_path 'fog/compute/models/slicehost'
 | 
			
		||||
      model_path 'fog/slicehost/models/compute'
 | 
			
		||||
      model       :flavor
 | 
			
		||||
      collection  :flavors
 | 
			
		||||
      model       :image
 | 
			
		||||
| 
						 | 
				
			
			@ -13,7 +13,7 @@ module Fog
 | 
			
		|||
      model       :server
 | 
			
		||||
      collection  :servers
 | 
			
		||||
 | 
			
		||||
      request_path 'fog/compute/requests/slicehost'
 | 
			
		||||
      request_path 'fog/slicehost/requests/compute'
 | 
			
		||||
      request :create_slice
 | 
			
		||||
      request :delete_slice
 | 
			
		||||
      request :get_backups
 | 
			
		||||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
require 'fog/core/collection'
 | 
			
		||||
require 'fog/compute/models/slicehost/flavor'
 | 
			
		||||
require 'fog/slicehost/models/compute/flavor'
 | 
			
		||||
 | 
			
		||||
module Fog
 | 
			
		||||
  module Compute
 | 
			
		||||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
require 'fog/core/collection'
 | 
			
		||||
require 'fog/compute/models/slicehost/image'
 | 
			
		||||
require 'fog/slicehost/models/compute/image'
 | 
			
		||||
 | 
			
		||||
module Fog
 | 
			
		||||
  module Compute
 | 
			
		||||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
require 'fog/core/collection'
 | 
			
		||||
require 'fog/compute/models/slicehost/server'
 | 
			
		||||
require 'fog/slicehost/models/compute/server'
 | 
			
		||||
 | 
			
		||||
module Fog
 | 
			
		||||
  module Compute
 | 
			
		||||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ module Fog
 | 
			
		|||
    class Slicehost
 | 
			
		||||
      class Real
 | 
			
		||||
 | 
			
		||||
        require 'fog/compute/parsers/slicehost/create_slice'
 | 
			
		||||
        require 'fog/slicehost/parsers/compute/create_slice'
 | 
			
		||||
 | 
			
		||||
        # Create a new slice
 | 
			
		||||
        # ==== Parameters
 | 
			
		||||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ module Fog
 | 
			
		|||
    class Slicehost
 | 
			
		||||
      class Real
 | 
			
		||||
 | 
			
		||||
        require 'fog/compute/parsers/slicehost/get_backups'
 | 
			
		||||
        require 'fog/slicehost/parsers/compute/get_backups'
 | 
			
		||||
 | 
			
		||||
        # Get list of backups
 | 
			
		||||
        #
 | 
			
		||||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ module Fog
 | 
			
		|||
    class Slicehost
 | 
			
		||||
      class Real
 | 
			
		||||
 | 
			
		||||
        require 'fog/compute/parsers/slicehost/get_flavor'
 | 
			
		||||
        require 'fog/slicehost/parsers/compute/get_flavor'
 | 
			
		||||
 | 
			
		||||
        # Get details of a flavor
 | 
			
		||||
        #
 | 
			
		||||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ module Fog
 | 
			
		|||
    class Slicehost
 | 
			
		||||
      class Real
 | 
			
		||||
 | 
			
		||||
        require 'fog/compute/parsers/slicehost/get_flavors'
 | 
			
		||||
        require 'fog/slicehost/parsers/compute/get_flavors'
 | 
			
		||||
 | 
			
		||||
        # Get list of flavors
 | 
			
		||||
        #
 | 
			
		||||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ module Fog
 | 
			
		|||
    class Slicehost
 | 
			
		||||
      class Real
 | 
			
		||||
 | 
			
		||||
        require 'fog/compute/parsers/slicehost/get_image'
 | 
			
		||||
        require 'fog/slicehost/parsers/compute/get_image'
 | 
			
		||||
 | 
			
		||||
        # Get details of an image
 | 
			
		||||
        #
 | 
			
		||||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ module Fog
 | 
			
		|||
    class Slicehost
 | 
			
		||||
      class Real
 | 
			
		||||
 | 
			
		||||
        require 'fog/compute/parsers/slicehost/get_images'
 | 
			
		||||
        require 'fog/slicehost/parsers/compute/get_images'
 | 
			
		||||
 | 
			
		||||
        # Get list of images
 | 
			
		||||
        #
 | 
			
		||||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ module Fog
 | 
			
		|||
    class Slicehost
 | 
			
		||||
      class Real
 | 
			
		||||
 | 
			
		||||
        require 'fog/compute/parsers/slicehost/get_slice'
 | 
			
		||||
        require 'fog/slicehost/parsers/compute/get_slice'
 | 
			
		||||
 | 
			
		||||
        # Get details of a slice
 | 
			
		||||
        #
 | 
			
		||||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ module Fog
 | 
			
		|||
    class Slicehost
 | 
			
		||||
      class Real
 | 
			
		||||
 | 
			
		||||
        require 'fog/compute/parsers/slicehost/get_slices'
 | 
			
		||||
        require 'fog/slicehost/parsers/compute/get_slices'
 | 
			
		||||
 | 
			
		||||
        # Get list of slices
 | 
			
		||||
        #
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue