Class: Capistrano::NetStorage::SCM::Base Abstract

Inherits:
Object
  • Object
show all
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

Git

Instance Method Summary collapse

Instance Method Details

#checkObject

This method is abstract.

Check SCM prerequisites

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/capistrano/net_storage/scm/base.rb', line 13

def check
  raise NotImplementedError
end

#cloneObject

This method is abstract.

Clone repository to local

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/capistrano/net_storage/scm/base.rb', line 19

def clone
  raise NotImplementedError
end

#prepare_archiveObject

This method is abstract.

Prepare snapshot of repository to be archived for release

Raises:

  • (NotImplementedError)


37
38
39
# File 'lib/capistrano/net_storage/scm/base.rb', line 37

def prepare_archive
  raise NotImplementedError
end

#set_current_revisionObject

This method is abstract.

Set current revision to be deployed of the repository

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/capistrano/net_storage/scm/base.rb', line 31

def set_current_revision
  raise NotImplementedError
end

#sync_configObject

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

#updateObject

This method is abstract.

Update local repository

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/capistrano/net_storage/scm/base.rb', line 25

def update
  raise NotImplementedError
end