2010-12-16 15:04:28 -05:00
|
|
|
require 'nokogiri'
|
|
|
|
|
2011-01-10 01:12:48 -05:00
|
|
|
require 'fog/core'
|
2010-10-29 18:25:14 -04:00
|
|
|
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
|
|
|
|
2011-01-07 19:52:09 -05:00
|
|
|
service(:compute, 'compute/new_servers')
|
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
|