mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[go_grid] rename servers to compute for consistency
This commit is contained in:
parent
799ea77dbe
commit
3d3d247a99
12 changed files with 18 additions and 18 deletions
|
@ -4,14 +4,14 @@ module Fog
|
||||||
extend Fog::Provider
|
extend Fog::Provider
|
||||||
|
|
||||||
service_path 'fog/go_grid'
|
service_path 'fog/go_grid'
|
||||||
service 'servers'
|
service 'compute'
|
||||||
|
|
||||||
def self.new(attributes = {})
|
def self.new(attributes = {})
|
||||||
location = caller.first
|
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 << ")[/] "
|
warning << " [light_black](" << location << ")[/] "
|
||||||
Formatador.display_line(warning)
|
Formatador.display_line(warning)
|
||||||
Fog::Bluebox::Blocks.new(attributes)
|
Fog::Bluebox::Compute.new(attributes)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,15 +9,15 @@ module GoGrid
|
||||||
def [](service)
|
def [](service)
|
||||||
@@connections ||= Hash.new do |hash, key|
|
@@connections ||= Hash.new do |hash, key|
|
||||||
hash[key] = case key
|
hash[key] = case key
|
||||||
when :servers
|
when :compute
|
||||||
Fog::GoGrid::Servers.new
|
Fog::GoGrid::Compute.new
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@connections[service]
|
@@connections[service]
|
||||||
end
|
end
|
||||||
|
|
||||||
def services
|
def services
|
||||||
[:servers]
|
[:compute]
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
module Fog
|
module Fog
|
||||||
module GoGrid
|
module GoGrid
|
||||||
class Servers < Fog::Service
|
class Compute < Fog::Service
|
||||||
|
|
||||||
requires :go_grid_api_key
|
requires :go_grid_api_key
|
||||||
requires :go_grid_shared_secret
|
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 :common_lookup_list
|
||||||
request :grid_image_list
|
request :grid_image_list
|
||||||
request :grid_ip_list
|
request :grid_ip_list
|
|
@ -1,6 +1,6 @@
|
||||||
module Fog
|
module Fog
|
||||||
module GoGrid
|
module GoGrid
|
||||||
class Servers
|
class Compute
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
# List options and lookups
|
# List options and lookups
|
|
@ -1,6 +1,6 @@
|
||||||
module Fog
|
module Fog
|
||||||
module GoGrid
|
module GoGrid
|
||||||
class Servers
|
class Compute
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
# List images
|
# List images
|
|
@ -1,6 +1,6 @@
|
||||||
module Fog
|
module Fog
|
||||||
module GoGrid
|
module GoGrid
|
||||||
class Servers
|
class Compute
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
# List ips
|
# List ips
|
|
@ -1,6 +1,6 @@
|
||||||
module Fog
|
module Fog
|
||||||
module GoGrid
|
module GoGrid
|
||||||
class Servers
|
class Compute
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
# List load balancers
|
# List load balancers
|
|
@ -1,6 +1,6 @@
|
||||||
module Fog
|
module Fog
|
||||||
module GoGrid
|
module GoGrid
|
||||||
class Servers
|
class Compute
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
# Create a new server
|
# Create a new server
|
|
@ -1,6 +1,6 @@
|
||||||
module Fog
|
module Fog
|
||||||
module GoGrid
|
module GoGrid
|
||||||
class Servers
|
class Compute
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
# Delete a server
|
# Delete a server
|
|
@ -1,6 +1,6 @@
|
||||||
module Fog
|
module Fog
|
||||||
module GoGrid
|
module GoGrid
|
||||||
class Servers
|
class Compute
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
# Get one or more servers by name
|
# Get one or more servers by name
|
|
@ -1,6 +1,6 @@
|
||||||
module Fog
|
module Fog
|
||||||
module GoGrid
|
module GoGrid
|
||||||
class Servers
|
class Compute
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
# List servers
|
# List servers
|
|
@ -1,6 +1,6 @@
|
||||||
module Fog
|
module Fog
|
||||||
module GoGrid
|
module GoGrid
|
||||||
class Servers
|
class Compute
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
# Start, Stop or Restart a server
|
# Start, Stop or Restart a server
|
Loading…
Add table
Add a link
Reference in a new issue