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