Module: Usmu::Deployment::RemoteFileInterface
- Defined in:
- lib/usmu/deployment/remote_file_interface.rb
Instance Method Summary collapse
-
#files_list ⇒ Array<String>
Returns a complete list of files on the remote server.
-
#stat(filename) ⇒ Hash
Returns a hash of information about the named file, including at a minimum the following:.
Instance Method Details
#files_list ⇒ Array<String>
Returns a complete list of files on the remote server.
8 9 10 |
# File 'lib/usmu/deployment/remote_file_interface.rb', line 8 def files_list raise NotImplementedError end |
#stat(filename) ⇒ Hash
Returns a hash of information about the named file, including at a minimum the following:
:mtime
- DateTime representing when the file was last modified.- One of
:md5
or:sha1
- A hash of the remote file.
20 21 22 |
# File 'lib/usmu/deployment/remote_file_interface.rb', line 20 def stat(filename) raise NotImplementedError end |