2011-01-10 01:12:48 -05:00
|
|
|
require 'fog/core'
|
2010-12-16 14:24:52 -05:00
|
|
|
|
2010-07-03 11:48:13 -04:00
|
|
|
module Fog
|
2010-09-08 13:56:38 -04:00
|
|
|
module Linode
|
2010-07-03 11:48:13 -04:00
|
|
|
|
2010-09-08 13:56:38 -04:00
|
|
|
extend Fog::Provider
|
2010-07-03 11:48:13 -04:00
|
|
|
|
2011-01-07 19:52:09 -05:00
|
|
|
service(:compute, 'compute/linode')
|
2011-01-07 19:12:04 -05:00
|
|
|
service(:dns, 'dns/linode')
|
2010-07-03 11:48:13 -04:00
|
|
|
|
2010-09-08 13:56:38 -04:00
|
|
|
def self.new(attributes = {})
|
|
|
|
location = caller.first
|
|
|
|
warning = "[yellow][WARN] Fog::Linode#new is deprecated, use Fog::Linode::Compute#new instead[/]"
|
|
|
|
warning << " [light_black](" << location << ")[/] "
|
|
|
|
Formatador.display_line(warning)
|
|
|
|
Fog::Linode::Compute.new(attributes)
|
2010-07-03 11:48:13 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
2010-09-08 13:56:38 -04:00
|
|
|
|