Class: Fog::Local::Real

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

Instance Method Summary collapse

Methods included from Collections

#directories

Constructor Details

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



45
46
47
# File 'lib/fog/local.rb', line 45

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

Instance Method Details

#local_rootObject



49
50
51
# File 'lib/fog/local.rb', line 49

def local_root
  @local_root
end

#path_to(partial) ⇒ Object



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

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