lib/fog/local/storage.rb in fog-0.3.31 vs lib/fog/local/storage.rb in fog-0.3.32
- old
+ new
@@ -1,10 +1,10 @@
module Fog
module Local
class Storage < Fog::Service
- requires :local_root, &inject_parameter_specs
+ requires :local_root
model_path 'fog/local/models/storage'
collection :directories
model :directory
model :file
@@ -31,11 +31,11 @@
def local_root
@local_root
end
- def path(partial)
- partial
+ def path_to(partial)
+ ::File.join(@local_root, partial)
end
end
class Real