Class: Capistrano::Deploy::Strategy::Remote

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

Checkout

Instance Attribute Summary

Attributes inherited from Base

#configuration

Instance Method Summary collapse

Methods inherited from Base

#initialize

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