[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