Class: Fog::Local::Storage::Directory
- Inherits:
-
Model
- Object
- Model
- Fog::Local::Storage::Directory
- Defined in:
- lib/fog/local/models/directory.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/fog/local/models/directory.rb', line 7 def destroy requires :key if ::File.directory?(path) Dir.rmdir(path) true else false end end |
#files ⇒ Object
18 19 20 |
# File 'lib/fog/local/models/directory.rb', line 18 def files @files ||= Files.new(directory: self, service: service) end |
#public=(new_public) ⇒ Object
22 23 24 |
# File 'lib/fog/local/models/directory.rb', line 22 def public=(new_public) new_public end |
#public_url ⇒ Object
26 27 28 |
# File 'lib/fog/local/models/directory.rb', line 26 def public_url nil end |
#save ⇒ Object
30 31 32 33 34 35 |
# File 'lib/fog/local/models/directory.rb', line 30 def save requires :key FileUtils.mkpath(path) true end |