Sha256: 808a6bfec88758f38e22c5dd78f7ee767ccd556c16a2e58507db6502151725cf

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 Bytes

Contents

module CapistranoMulticonfigParallel
  # class used as a wrapper around capistrano
  class Application < Capistrano::Application
    def name
      'multi_cap'
    end

    def sort_options(options)
      super.concat(CapistranoMulticonfigParallel.capistrano_options)
    end

    def top_level
      job_manager = CapistranoMulticonfigParallel::BaseManager.new(self, top_level_tasks, stages)
      if job_manager.can_start? && !options.show_prereqs && !options.show_tasks
        job_manager.start
      else
        super
      end
    end

    def multi_apps?
      stages.find { |stage| stage.include?(':') }.present?
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano_multiconfig_parallel-0.14.0 lib/capistrano_multiconfig_parallel/application.rb