Class: Capistrano::Deploy::SCM::Passthrough
- Inherits:
-
Base
- Object
- Base
- Capistrano::Deploy::SCM::Passthrough
- Defined in:
- lib/capistrano/recipes/deploy/scm/passthrough.rb
Overview
An SCM even more trivial than :none. The basic idea is that everything is simply passed through. In general it’s a bad idea to use it unless you’ve got something else such as Jenkins managing the real SCM.
Note that strategies that expect files being copied don’t work with the :passthrough SCM. Namely, :copy does not work.
Instance Method Summary collapse
-
#head ⇒ Object
No versioning, thus, no head.
- #log(from = "", to = "") ⇒ Object
-
#query_revision(revision) ⇒ Object
No versioning, so this just returns the argument, with no modification.
-
#sync(revision, destination) ⇒ Object
(also: #checkout)
Return a command that always succeeds and has no side effects.
Instance Method Details
#head ⇒ Object
No versioning, thus, no head. Returns the empty string.
18 19 20 |
# File 'lib/capistrano/recipes/deploy/scm/passthrough.rb', line 18 def head '' end |
#log(from = "", to = "") ⇒ Object
37 38 39 |
# File 'lib/capistrano/recipes/deploy/scm/passthrough.rb', line 37 def log(from="", to="") "#{self.class.name}: #{from} - #{to}" end |
#query_revision(revision) ⇒ Object
No versioning, so this just returns the argument, with no modification.
33 34 35 |
# File 'lib/capistrano/recipes/deploy/scm/passthrough.rb', line 33 def query_revision(revision) revision end |
#sync(revision, destination) ⇒ Object Also known as: checkout
Return a command that always succeeds and has no side effects. Whatever we are given we’re just going to pass through.
24 25 26 |
# File 'lib/capistrano/recipes/deploy/scm/passthrough.rb', line 24 def sync(revision, destination) 'true' end |