Skip to content

Commit

Permalink
[local] fix some leftover bugs from the remodel
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus committed Sep 21, 2010
1 parent c25862f commit 71e4f64
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/fog/local/models/storage/directories.rb
@@ -1,13 +1,13 @@
require 'fog/collection'
require 'fog/local/models/directory'
require 'fog/local/models/storage/directory'

module Fog
module Local
class Storage

class Directories < Fog::Collection

model Fog::Local::Directory
model Fog::Local::Storage::Directory

def all
data = Dir.entries(connection.local_root).select do |entry|
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/local/models/storage/directory.rb
Expand Up @@ -25,7 +25,7 @@ def destroy

def files
@files ||= begin
Fog::Local::Files.new(
Fog::Local::Storage::Files.new(
:directory => self,
:connection => connection
)
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/local/models/storage/file.rb
Expand Up @@ -6,7 +6,7 @@ class Storage

class File < Fog::Model

identity :key, 'Key'
identity :key, :aliases => 'Key'

attr_accessor :body
attribute :content_length, :aliases => 'Content-Length'
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/local/models/storage/files.rb
Expand Up @@ -9,7 +9,7 @@ class Files < Fog::Collection

attribute :directory

model Fog::Local::File
model Fog::Local::Storage::File

def all
requires :directory
Expand Down

0 comments on commit 71e4f64

Please sign in to comment.