[go_grid] rename servers to compute for consistency

This commit is contained in:
geemus 2010-09-08 11:56:32 -07:00
parent 799ea77dbe
commit 3d3d247a99
12 changed files with 18 additions and 18 deletions

View File

@ -4,14 +4,14 @@ module Fog
extend Fog::Provider
service_path 'fog/go_grid'
service 'servers'
service 'compute'
def self.new(attributes = {})
location = caller.first
warning = "[yellow][WARN] Fog::GoGrid#new is deprecated, use Fog::GoGrid::Servers#new instead[/]"
warning = "[yellow][WARN] Fog::GoGrid#new is deprecated, use Fog::GoGrid::Compute#new instead[/]"
warning << " [light_black](" << location << ")[/] "
Formatador.display_line(warning)
Fog::Bluebox::Blocks.new(attributes)
Fog::Bluebox::Compute.new(attributes)
end
end

View File

@ -9,15 +9,15 @@ module GoGrid
def [](service)
@@connections ||= Hash.new do |hash, key|
hash[key] = case key
when :servers
Fog::GoGrid::Servers.new
when :compute
Fog::GoGrid::Compute.new
end
end
@@connections[service]
end
def services
[:servers]
[:compute]
end
else

View File

@ -1,13 +1,13 @@
module Fog
module GoGrid
class Servers < Fog::Service
class Compute < Fog::Service
requires :go_grid_api_key
requires :go_grid_shared_secret
model_path 'fog/go_grid/models'
model_path 'fog/go_grid/models/compute'
request_path 'fog/go_grid/requests'
request_path 'fog/go_grid/requests/compute'
request :common_lookup_list
request :grid_image_list
request :grid_ip_list

View File

@ -1,6 +1,6 @@
module Fog
module GoGrid
class Servers
class Compute
class Real
# List options and lookups

View File

@ -1,6 +1,6 @@
module Fog
module GoGrid
class Servers
class Compute
class Real
# List images

View File

@ -1,6 +1,6 @@
module Fog
module GoGrid
class Servers
class Compute
class Real
# List ips

View File

@ -1,6 +1,6 @@
module Fog
module GoGrid
class Servers
class Compute
class Real
# List load balancers

View File

@ -1,6 +1,6 @@
module Fog
module GoGrid
class Servers
class Compute
class Real
# Create a new server

View File

@ -1,6 +1,6 @@
module Fog
module GoGrid
class Servers
class Compute
class Real
# Delete a server

View File

@ -1,6 +1,6 @@
module Fog
module GoGrid
class Servers
class Compute
class Real
# Get one or more servers by name

View File

@ -1,6 +1,6 @@
module Fog
module GoGrid
class Servers
class Compute
class Real
# List servers

View File

@ -1,6 +1,6 @@
module Fog
module GoGrid
class Servers
class Compute
class Real
# Start, Stop or Restart a server