Method: Adhoq::Storage::LocalFile#initialize
- Defined in:
- lib/adhoq/storage/local_file.rb
#initialize(root_path) ⇒ LocalFile
Returns a new instance of LocalFile.
8 9 10 11 12 13 |
# File 'lib/adhoq/storage/local_file.rb', line 8 def initialize(root_path) path = Pathname.new(root_path) @fog = Fog::Storage.new(provider: 'Local', local_root: path.parent) @dir = path.basename.to_s end |