Module: Usmu::Deployment::RemoteFileInterface

Defined in:
lib/usmu/deployment/remote_file_interface.rb

Instance Method Summary collapse

Instance Method Details

#files_listArray<String>

Returns a complete list of files on the remote server.

Returns:

  • (Array<String>)

    An array of filenames including paths.

Raises:

  • (NotImplementedError)


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.

Parameters:

  • filename (String)

    The full path and filename as returned from #files_list.

Returns:

  • (Hash)

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/usmu/deployment/remote_file_interface.rb', line 20

def stat(filename)
  raise NotImplementedError
end