lib/fog/local/storage.rb in fog-1.22.0 vs lib/fog/local/storage.rb in fog-1.22.1
- old
+ new
@@ -1,11 +1,10 @@
require 'fog/local/core'
module Fog
module Storage
class Local < Fog::Service
-
requires :local_root
recognizes :endpoint, :scheme, :host, :port, :path
model_path 'fog/local/models/storage'
collection :directories
@@ -14,11 +13,10 @@
collection :files
require 'uri'
class Mock
-
attr_reader :endpoint
def self.data
@data ||= Hash.new do |hash, key|
hash[key] = {}
@@ -60,11 +58,10 @@
URI::Generic.build(options).to_s
end
end
class Real
-
attr_reader :endpoint
def initialize(options={})
@local_root = ::File.expand_path(options[:local_root])
@@ -92,9 +89,8 @@
return unless options[:host]
URI::Generic.build(options).to_s
end
end
-
end
end
end