Class: Fog::Local::Real

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/local.rb,
lib/fog/local/models/directories.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



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

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

Instance Method Details

#directoriesObject



8
9
10
# File 'lib/fog/local/models/directories.rb', line 8

def directories
  Fog::Local::Directories.new(:connection => self)
end

#local_rootObject



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

def local_root
  @local_root
end

#path_to(partial) ⇒ Object



66
67
68
# File 'lib/fog/local.rb', line 66

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