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

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

Checkout, Export, RemoteCache

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



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