Sha256: ac06f721123f74dc0cd1e6f42a4467f9b119f7a5c6f0189bc25ca87daf930eb7

Contents?: true

Size: 874 Bytes

Versions: 3

Compression:

Stored size: 874 Bytes

Contents

require_relative './all'
Gem.find_files('capistrano_multiconfig_parallel/initializers/**/*.rb').each { |path| require path }
module CapistranoMulticonfigParallel
  # this is the class that will be invoked from terminal , and willl use the invoke task as the primary function.
  class CLI
    class << self
      include CapistranoMulticonfigParallel::ApplicationHelper

      # method used to start
      def start
        check_terminal_tty
        arguments = multi_fetch_argv(ARGV.dup)
        if arguments[CapistranoMulticonfigParallel::ENV_KEY_JOB_ID].blank?
          run_the_application
        else
          Capistrano::Application.new.run
        end
      end

      def run_the_application
        execute_with_rescue('stderr') do
          verify_validation
          CapistranoMulticonfigParallel::Application.new.start
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capistrano_multiconfig_parallel-0.20.9 lib/capistrano_multiconfig_parallel/cli.rb
capistrano_multiconfig_parallel-0.20.8 lib/capistrano_multiconfig_parallel/cli.rb
capistrano_multiconfig_parallel-0.20.7 lib/capistrano_multiconfig_parallel/cli.rb