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

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

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



43
44
45
# File 'lib/fog/local/storage.rb', line 43

def initialize(options={})
  @local_root = ::File.expand_path(options[:local_root])
end

Instance Method Details

#local_rootObject



47
48
49
# File 'lib/fog/local/storage.rb', line 47

def local_root
  @local_root
end

#path_to(partial) ⇒ Object



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

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