1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[local] fix some leftover bugs from the remodel

This commit is contained in:
geemus 2010-09-21 10:54:15 -07:00
parent c25862f63e
commit 71e4f64024
4 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
require 'fog/collection'
require 'fog/local/models/directory'
require 'fog/local/models/storage/directory'
module Fog
module Local
@ -7,7 +7,7 @@ module Fog
class Directories < Fog::Collection
model Fog::Local::Directory
model Fog::Local::Storage::Directory
def all
data = Dir.entries(connection.local_root).select do |entry|

View file

@ -25,7 +25,7 @@ module Fog
def files
@files ||= begin
Fog::Local::Files.new(
Fog::Local::Storage::Files.new(
:directory => self,
:connection => connection
)

View file

@ -6,7 +6,7 @@ module Fog
class File < Fog::Model
identity :key, 'Key'
identity :key, :aliases => 'Key'
attr_accessor :body
attribute :content_length, :aliases => 'Content-Length'

View file

@ -9,7 +9,7 @@ module Fog
attribute :directory
model Fog::Local::File
model Fog::Local::Storage::File
def all
requires :directory