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/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