2010-10-29 18:25:14 -04:00
|
|
|
require 'nokogiri'
|
|
|
|
require 'fog/core/parser'
|
|
|
|
|
2010-06-23 16:22:20 -04:00
|
|
|
module Fog
|
2010-09-08 15:58:51 -04:00
|
|
|
module NewServers
|
2010-06-23 16:22:20 -04:00
|
|
|
|
2010-09-08 15:58:51 -04:00
|
|
|
extend Fog::Provider
|
2010-06-23 16:22:20 -04:00
|
|
|
|
2010-09-08 15:58:51 -04:00
|
|
|
service_path 'fog/new_servers'
|
|
|
|
service 'compute'
|
2010-06-23 16:22:20 -04:00
|
|
|
|
2010-09-08 15:58:51 -04:00
|
|
|
def self.new(attributes = {})
|
|
|
|
location = caller.first
|
|
|
|
warning = "[yellow][WARN] Fog::NewServers#new is deprecated, use Fog::NewServers::Compute#new instead[/]"
|
|
|
|
warning << " [light_black](" << location << ")[/] "
|
|
|
|
Formatador.display_line(warning)
|
|
|
|
Fog::NewServers::Compute.new(attributes)
|
2010-06-23 16:22:20 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|