Class: Capistrano::Deploy::SCM::Base::LocalProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/alpha_omega/deploy/scm/base.rb

Overview

Wraps an SCM instance and forces all messages sent to it to be relayed to the underlying SCM instance, in “local” mode. See Base#local.

Instance Method Summary collapse

Constructor Details

#initialize(scm) ⇒ LocalProxy

Returns a new instance of LocalProxy.



30
31
32
# File 'lib/alpha_omega/deploy/scm/base.rb', line 30

def initialize(scm)
  @scm = scm
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args, &block) ⇒ Object



34
35
36
# File 'lib/alpha_omega/deploy/scm/base.rb', line 34

def method_missing(sym, *args, &block)
  @scm.local { return @scm.send(sym, *args, &block) }
end