Class: Capistrano::Deploy::Strategy::Remote
- Defined in:
- lib/alpha_omega/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.
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
20 21 22 23 24 |
# File 'lib/alpha_omega/deploy/strategy/remote.rb', line 20 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.
13 14 15 16 17 18 |
# File 'lib/alpha_omega/deploy/strategy/remote.rb', line 13 def deploy! commands.each do |command| run command end run mark end |