Class: Capistrano::Deploy::Strategy::Remote
- Defined in:
- lib/capistrano/recipes/deploy/strategy/remote.rb
Overview
An abstract superclass, which forms the base for all deployment strategies which work by grabbing the code from the repository directly from remote host. This includes deploying by checkout (the default), and deploying by export.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #check! ⇒ Object
-
#deploy! ⇒ Object
Executes the SCM command for this strategy and writes the REVISION mark file to each host.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Capistrano::Deploy::Strategy::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Capistrano::Deploy::Strategy::Base
Instance Method Details
#check! ⇒ Object
18 19 20 21 22 |
# File 'lib/capistrano/recipes/deploy/strategy/remote.rb', line 18 def check! super.check do |d| d.remote.command(source.command) end end |
#deploy! ⇒ Object
Executes the SCM command for this strategy and writes the REVISION mark file to each host.
14 15 16 |
# File 'lib/capistrano/recipes/deploy/strategy/remote.rb', line 14 def deploy! scm_run "#{command} && #{mark}" end |