Module: CapistranoGitExternal::GitPatch

Defined in:
lib/capistrano-git-external/git-patch.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/capistrano-git-external/git-patch.rb', line 3

def self.included(base)
  base.extend(ClassMethods)
  base.send(:include, InstanceMethods)

  base.class_eval do
    alias_method :checkout_without_externals, :checkout
    alias_method :checkout, :checkout_with_externals

    alias_method :sync_without_externals, :sync
    alias_method :sync, :sync_with_externals
  end
end