Class: Fog::Storage::Local::Real

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/storage/local.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



52
53
54
55
# File 'lib/fog/storage/local.rb', line 52

def initialize(options={})
  require 'mime/types'
  @local_root = ::File.expand_path(options[:local_root])
end

Instance Method Details

#local_rootObject



57
58
59
# File 'lib/fog/storage/local.rb', line 57

def local_root
  @local_root
end

#path_to(partial) ⇒ Object



61
62
63
# File 'lib/fog/storage/local.rb', line 61

def path_to(partial)
  ::File.join(@local_root, partial)
end