lib/fog/local/models/storage/files.rb in fog-maestrodev-1.7.0.20121114190951 vs lib/fog/local/models/storage/files.rb in fog-maestrodev-1.8.0.20130109172219
- old
+ new
@@ -13,11 +13,11 @@
def all
requires :directory
if directory.collection.get(directory.key)
pwd = Dir.pwd
- Dir.chdir(connection.path_to(directory.key))
+ Dir.chdir(service.path_to(directory.key))
data = Dir.glob('**/*').reject do |file|
::File.directory?(file)
end.map do |key|
path = file_path(key)
{
@@ -76,10 +76,10 @@
end
private
def file_path(key)
- connection.path_to(::File.join(directory.key, key))
+ service.path_to(::File.join(directory.key, key))
end
end
end
end