2010-07-24 20:12:13 -04:00
|
|
|
module Fog
|
2010-09-07 19:58:14 -04:00
|
|
|
module GoGrid
|
2010-07-24 20:12:13 -04:00
|
|
|
|
2010-09-07 19:58:14 -04:00
|
|
|
extend Fog::Provider
|
2010-07-24 20:12:13 -04:00
|
|
|
|
2010-09-07 19:58:14 -04:00
|
|
|
service_path 'fog/go_grid'
|
2010-09-08 14:56:32 -04:00
|
|
|
service 'compute'
|
2010-07-24 20:12:13 -04:00
|
|
|
|
2010-09-07 19:58:14 -04:00
|
|
|
def self.new(attributes = {})
|
|
|
|
location = caller.first
|
2010-09-08 14:56:32 -04:00
|
|
|
warning = "[yellow][WARN] Fog::GoGrid#new is deprecated, use Fog::GoGrid::Compute#new instead[/]"
|
2010-09-07 19:58:14 -04:00
|
|
|
warning << " [light_black](" << location << ")[/] "
|
|
|
|
Formatador.display_line(warning)
|
2010-10-11 02:35:41 -04:00
|
|
|
Fog::GoGrid::Compute.new(attributes)
|
2010-07-24 20:12:13 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|