2010-12-16 11:24:52 -08:00
|
|
|
require File.join(File.dirname(__FILE__), 'core')
|
|
|
|
|
2010-05-01 22:10:11 -07:00
|
|
|
module Fog
|
2010-09-08 12:50:38 -07:00
|
|
|
module Local
|
2010-05-01 22:10:11 -07:00
|
|
|
|
2010-09-08 12:50:38 -07:00
|
|
|
extend Fog::Provider
|
2010-05-01 22:10:11 -07:00
|
|
|
|
2010-09-08 12:50:38 -07:00
|
|
|
service_path 'fog/local'
|
|
|
|
service 'storage'
|
2010-05-01 22:10:11 -07:00
|
|
|
|
2010-09-08 12:50:38 -07:00
|
|
|
def self.new(attributes = {})
|
|
|
|
location = caller.first
|
|
|
|
warning = "[yellow][WARN] Fog::Local#new is deprecated, use Fog::Local::Storage#new instead[/]"
|
|
|
|
warning << " [light_black](" << location << ")[/] "
|
|
|
|
Formatador.display_line(warning)
|
|
|
|
Fog::Local::Storage.new(attributes)
|
2010-05-01 22:10:11 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2010-09-08 12:50:38 -07:00
|
|
|
end
|