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
|
||||
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -1,6 +1,6 @@
|
|||
module Fog
|
||||
module GoGrid
|
||||
class Servers
|
||||
class Compute
|
||||
class Real
|
||||
|
||||
# List options and lookups
|
|
@ -1,6 +1,6 @@
|
|||
module Fog
|
||||
module GoGrid
|
||||
class Servers
|
||||
class Compute
|
||||
class Real
|
||||
|
||||
# List images
|
|
@ -1,6 +1,6 @@
|
|||
module Fog
|
||||
module GoGrid
|
||||
class Servers
|
||||
class Compute
|
||||
class Real
|
||||
|
||||
# List ips
|
|
@ -1,6 +1,6 @@
|
|||
module Fog
|
||||
module GoGrid
|
||||
class Servers
|
||||
class Compute
|
||||
class Real
|
||||
|
||||
# List load balancers
|
|
@ -1,6 +1,6 @@
|
|||
module Fog
|
||||
module GoGrid
|
||||
class Servers
|
||||
class Compute
|
||||
class Real
|
||||
|
||||
# Create a new server
|
|
@ -1,6 +1,6 @@
|
|||
module Fog
|
||||
module GoGrid
|
||||
class Servers
|
||||
class Compute
|
||||
class Real
|
||||
|
||||
# Delete a server
|
|
@ -1,6 +1,6 @@
|
|||
module Fog
|
||||
module GoGrid
|
||||
class Servers
|
||||
class Compute
|
||||
class Real
|
||||
|
||||
# Get one or more servers by name
|
|
@ -1,6 +1,6 @@
|
|||
module Fog
|
||||
module GoGrid
|
||||
class Servers
|
||||
class Compute
|
||||
class Real
|
||||
|
||||
# List servers
|
|
@ -1,6 +1,6 @@
|
|||
module Fog
|
||||
module GoGrid
|
||||
class Servers
|
||||
class Compute
|
||||
class Real
|
||||
|
||||
# Start, Stop or Restart a server
|
Loading…
Add table
Reference in a new issue