fog--fog/lib/fog/slicehost.rb

24 lines
573 B
Ruby
Raw Normal View History

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')
require 'fog/core/parser'
module Fog
module Slicehost
2010-06-12 22:31:17 +00:00
extend Fog::Provider
2010-06-12 22:31:17 +00:00
service(:compute, 'slicehost/compute')
2011-01-08 00:12:04 +00:00
service(:dns, 'dns/slicehost')
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[/]"
warning << " [light_black](" << location << ")[/] "
Formatador.display_line(warning)
Fog::Slicehost::Compute.new(attributes)
end
end
end