2010-05-02 01:10:11 -04:00
|
|
|
module Fog
|
2010-09-08 15:50:38 -04:00
|
|
|
module Local
|
2010-05-02 01:10:11 -04:00
|
|
|
|
2010-09-08 15:50:38 -04:00
|
|
|
extend Fog::Provider
|
2010-05-02 01:10:11 -04:00
|
|
|
|
2010-09-08 15:50:38 -04:00
|
|
|
service_path 'fog/local'
|
|
|
|
service 'storage'
|
2010-05-02 01:10:11 -04:00
|
|
|
|
2010-09-08 15:50:38 -04: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-02 01:10:11 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2010-09-08 15:50:38 -04:00
|
|
|
end
|