2010-12-16 14:24:52 -05:00
|
|
|
require File.join(File.dirname(__FILE__), 'core')
|
|
|
|
|
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
|
|
|
|
2010-09-08 13:56:38 -04:00
|
|
|
service_path 'fog/linode'
|
|
|
|
service 'compute'
|
2010-12-21 18:11:29 -05:00
|
|
|
service 'dns'
|
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
|
|
|
|