1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[zerigo] better integrate for bin/fog

This commit is contained in:
geemus 2010-12-15 14:56:46 -08:00
parent b689650666
commit 05d38d315d
3 changed files with 4 additions and 10 deletions

View file

@ -75,6 +75,7 @@ require 'fog/aws'
require 'fog/bluebox'
require 'fog/brightbox'
require 'fog/go_grid'
require 'fog/google'
require 'fog/linode'
require 'fog/local'
require 'fog/new_servers'
@ -83,4 +84,3 @@ require 'fog/slicehost'
require 'fog/terremark'
require 'fog/vcloud'
require 'fog/zerigo'
require 'fog/google'

View file

@ -15,7 +15,8 @@ module Fog
::NewServers,
::Rackspace,
::Slicehost,
::Terremark
::Terremark,
::Zerigo
].select {|provider| provider.available?}
end
@ -83,3 +84,4 @@ require 'fog/rackspace/bin'
require 'fog/slicehost/bin'
require 'fog/terremark/bin'
require 'fog/vcloud/bin'
require 'fog/zerigo/bin'

View file

@ -9,13 +9,5 @@ module Fog
service_path 'fog/zerigo'
service :compute
def self.new(attributes = {})
location = caller.first
warning = "[yellow][WARN] Fog::Zerigo#new is deprecated, use Fog::Zerigo::Compute#new instead[/]"
warning << " [light_black](" << location << ")[/] "
Formatador.display_line(warning)
Fog::Zerigo::Compute.new(attributes)
end
end
end