Class: Nova::Remote::Fake::FileSystem
- Inherits:
-
Object
- Object
- Nova::Remote::Fake::FileSystem
- Defined in:
- lib/nova/remote/fake/file_system.rb
Overview
Handles filesystem stuff, like downloading files and decompressing ifles.
Instance Method Summary collapse
-
#decompress_file(file, to) ⇒ void
abstract
Decompress the given file, to the given directory.
-
#file_exists?(file) ⇒ Boolean
abstract
Checks to see if the file exists on the file system.
-
#grab_file(file, options = {}) ⇒ Boolean
abstract
Grabs the file from file and puts it somewhere else.
Instance Method Details
#decompress_file(file, to) ⇒ void
This method is abstract.
Note:
Does nothing.
This method returns an undefined value.
Decompress the given file, to the given directory.
47 48 |
# File 'lib/nova/remote/fake/file_system.rb', line 47 def decompress_file(file, to) end |
#file_exists?(file) ⇒ Boolean
This method is abstract.
Note:
Does nothing.
Checks to see if the file exists on the file system.
36 37 38 |
# File 'lib/nova/remote/fake/file_system.rb', line 36 def file_exists?(file) false end |
#grab_file(file, options = {}) ⇒ Boolean
This method is abstract.
Note:
Does nothing.
Grabs the file from file and puts it somewhere else. If it’s a local file (checked by #file_exists?), it just copies it. If it’s not, it opens a connection to the server to try to download the file.
26 27 28 |
# File 'lib/nova/remote/fake/file_system.rb', line 26 def grab_file(file, = {}) false end |