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

View File

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

View File

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

View File

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