Class: Capistrano::NetStorage::Transport::Base Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/net_storage/transport/base.rb

Overview

This class is abstract.

Abstract class to transport archive from/to remote storage

Instance Method Summary collapse

Instance Method Details

#checkObject

This method is abstract.

Check prerequisites for transport

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/capistrano/net_storage/transport/base.rb', line 9

def check
  raise NotImplementedError
end

#downloadObject

This method is abstract.

Download archive from remote storage to servers. Archive file should be placed at config.archive_path

Raises:

  • (NotImplementedError)


28
29
30
# File 'lib/capistrano/net_storage/transport/base.rb', line 28

def download
  raise NotImplementedError
end

#find_uploadedObject

This method is abstract.

Find uploaded archive to be deployed and set :net_storage_uploaded_archive its address

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/capistrano/net_storage/transport/base.rb', line 15

def find_uploaded
  raise NotImplementedError
end

#uploadObject

This method is abstract.

Upload archive onto remote storage

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/capistrano/net_storage/transport/base.rb', line 21

def upload
  raise NotImplementedError
end