2010-10-29 18:25:14 -04:00
|
|
|
require 'nokogiri'
|
|
|
|
require 'fog/core/parser'
|
|
|
|
|
2009-11-27 00:04:49 -05:00
|
|
|
module Fog
|
2010-09-08 18:00:47 -04:00
|
|
|
module Slicehost
|
2010-06-12 18:31:17 -04:00
|
|
|
|
2010-09-08 18:00:47 -04:00
|
|
|
extend Fog::Provider
|
2010-06-12 18:31:17 -04:00
|
|
|
|
2010-09-08 18:00:47 -04:00
|
|
|
service_path 'fog/slicehost'
|
|
|
|
service :compute
|
2010-03-17 23:51:55 -04:00
|
|
|
|
2010-09-08 18:00:47 -04:00
|
|
|
def self.new(attributes = {})
|
|
|
|
location = caller.first
|
2010-11-01 14:52:04 -04:00
|
|
|
warning = "[yellow][WARN] Fog::Slicehost#new is deprecated, use Fog::Slicehost::Compute#new instead[/]"
|
2010-09-08 18:00:47 -04:00
|
|
|
warning << " [light_black](" << location << ")[/] "
|
|
|
|
Formatador.display_line(warning)
|
|
|
|
Fog::Slicehost::Compute.new(attributes)
|
2009-11-27 00:04:49 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|