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