Class: Fog::Local::Real
- Inherits:
-
Object
- Object
- Fog::Local::Real
- Defined in:
- lib/fog/local.rb,
lib/fog/local/models/directories.rb
Instance Method Summary collapse
- #directories ⇒ Object
-
#initialize(options = {}) ⇒ Real
constructor
A new instance of Real.
- #local_root ⇒ Object
- #path_to(partial) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Real
Returns a new instance of Real.
58 59 60 |
# File 'lib/fog/local.rb', line 58 def initialize(={}) @local_root = ::File.([:local_root]) end |
Instance Method Details
#directories ⇒ Object
8 9 10 |
# File 'lib/fog/local/models/directories.rb', line 8 def directories Fog::Local::Directories.new(:connection => self) end |
#local_root ⇒ Object
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 |