2011-01-10 14:12:48 +08:00
|
|
|
require 'fog/core'
|
2010-12-16 11:24:52 -08:00
|
|
|
|
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
|
|
|
|
2011-01-07 15:34:20 -08:00
|
|
|
service(:storage, 'storage/local')
|
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
|