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