2010-05-24 13:29:01 -04:00
|
|
|
module Fog
|
2010-09-07 19:26:01 -04:00
|
|
|
module Bluebox
|
2010-06-12 18:31:17 -04:00
|
|
|
|
2010-09-07 19:26:01 -04:00
|
|
|
extend Fog::Provider
|
2010-06-12 18:31:17 -04:00
|
|
|
|
2010-09-07 19:26:01 -04:00
|
|
|
service_path 'fog/bluebox'
|
2010-09-08 15:07:45 -04:00
|
|
|
service :compute
|
2010-06-12 18:31:17 -04:00
|
|
|
|
2010-09-07 19:35:19 -04:00
|
|
|
def self.new(attributes = {})
|
|
|
|
location = caller.first
|
2010-09-08 15:07:45 -04:00
|
|
|
warning = "[yellow][WARN] Fog::Bluebox#new is deprecated, use Fog::Bluebox::Compute#new instead[/]"
|
2010-09-07 19:35:19 -04:00
|
|
|
warning << " [light_black](" << location << ")[/] "
|
|
|
|
Formatador.display_line(warning)
|
2010-09-08 15:07:45 -04:00
|
|
|
Fog::Bluebox::Compute.new(attributes)
|
2010-09-07 19:35:19 -04:00
|
|
|
end
|
|
|
|
|
2010-05-24 13:29:01 -04:00
|
|
|
end
|
|
|
|
end
|