Class: Fog::Local::Storage::Real
- Inherits:
-
Object
- Object
- Fog::Local::Storage::Real
- Defined in:
- lib/fog/storage/local.rb
Instance Method Summary collapse
-
#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.
54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/fog/storage/local.rb', line 54 def initialize(={}) unless .delete(:provider) location = caller.first warning = "[yellow][WARN] Fog::Local::Storage.new is deprecated, use Fog::Storage.new(:provider => 'Local') instead[/]" warning << " [light_black](" << location << ")[/] " Formatador.display_line(warning) end require 'mime/types' @local_root = ::File.([:local_root]) end |
Instance Method Details
#local_root ⇒ Object
66 67 68 |
# File 'lib/fog/storage/local.rb', line 66 def local_root @local_root end |
#path_to(partial) ⇒ Object
70 71 72 |
# File 'lib/fog/storage/local.rb', line 70 def path_to(partial) ::File.join(@local_root, partial) end |