Class: Capistrano::NetStorage::SCM::Base Abstract
- Inherits:
-
Object
- Object
- Capistrano::NetStorage::SCM::Base
- Includes:
- Utils
- Defined in:
- lib/capistrano/net_storage/scm/base.rb
Overview
This class is abstract.
Base internal SCM class of Capistrano::Netstrage
Direct Known Subclasses
Instance Method Summary collapse
-
#check ⇒ Object
abstract
Check SCM prerequisites.
-
#clone ⇒ Object
abstract
Clone repository to local.
-
#prepare_archive ⇒ Object
abstract
Prepare snapshot of repository to be archived for release.
-
#set_current_revision ⇒ Object
abstract
Set current revision to be deployed of the repository.
-
#sync_config ⇒ Object
Copy local config files to servers.
-
#update ⇒ Object
abstract
Update local repository.
Instance Method Details
#check ⇒ Object
This method is abstract.
Check SCM prerequisites
13 14 15 |
# File 'lib/capistrano/net_storage/scm/base.rb', line 13 def check raise NotImplementedError end |
#clone ⇒ Object
This method is abstract.
Clone repository to local
19 20 21 |
# File 'lib/capistrano/net_storage/scm/base.rb', line 19 def clone raise NotImplementedError end |
#prepare_archive ⇒ Object
This method is abstract.
Prepare snapshot of repository to be archived for release
37 38 39 |
# File 'lib/capistrano/net_storage/scm/base.rb', line 37 def prepare_archive raise NotImplementedError end |
#set_current_revision ⇒ Object
This method is abstract.
Set current revision to be deployed of the repository
31 32 33 |
# File 'lib/capistrano/net_storage/scm/base.rb', line 31 def set_current_revision raise NotImplementedError end |
#sync_config ⇒ Object
Copy local config files to servers
42 43 44 45 |
# File 'lib/capistrano/net_storage/scm/base.rb', line 42 def sync_config return unless config.config_files upload_files(config.config_files, release_path.join('config')) end |
#update ⇒ Object
This method is abstract.
Update local repository
25 26 27 |
# File 'lib/capistrano/net_storage/scm/base.rb', line 25 def update raise NotImplementedError end |