Sha256: b0593a8a4d6268ce0d0607e96176d1f68c80f49d8d1cc1f8e195229db83e55b2

Contents?: true

Size: 697 Bytes

Versions: 5

Compression:

Stored size: 697 Bytes

Contents

if CapistranoMulticonfigParallel.capistrano_version_2?
  require 'capistrano/cli'
  Capistrano::Configuration::Execution.class_eval do
    alias_method :original_execute_task, :execute_task

    def execute_task(task)
      rake = CapistranoMulticonfigParallel::RakeTaskHooks.new(ENV, task, self)
      rake.automatic_hooks do
        original_execute_task(task)
      end
    end
  end

  Capistrano::Configuration::Callbacks.class_eval do
    alias_method :original_trigger, :trigger

    def trigger(event, task = nil)
      rake = CapistranoMulticonfigParallel::RakeTaskHooks.new(ENV, task, self)
      rake.automatic_hooks do
        original_trigger(event, task)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
capistrano_multiconfig_parallel-1.0.4 lib/capistrano_multiconfig_parallel/initializers/capistrano2.rb
capistrano_multiconfig_parallel-1.0.3 lib/capistrano_multiconfig_parallel/initializers/capistrano2.rb
capistrano_multiconfig_parallel-1.0.2 lib/capistrano_multiconfig_parallel/initializers/capistrano2.rb
capistrano_multiconfig_parallel-1.0.1 lib/capistrano_multiconfig_parallel/initializers/capistrano2.rb
capistrano_multiconfig_parallel-1.0.0 lib/capistrano_multiconfig_parallel/initializers/capistrano2.rb