class CapistranoMulticonfigParallel::CLI

this is the class that will be invoked from terminal , and willl use the invoke task as the primary function.

Public Class Methods

before_start(argv = ARGV) click to toggle source
# File lib/capistrano_multiconfig_parallel/cli.rb, line 15
def before_start(argv = ARGV)
  check_terminal_tty
  CapistranoMulticonfigParallel.original_args = argv.dup
end
run_the_application() click to toggle source
# File lib/capistrano_multiconfig_parallel/cli.rb, line 20
def run_the_application
  begin
    application = CapistranoMulticonfigParallel::Application.new
    execute_with_rescue('stderr') do
      application.start
    end
  ensure
    application.jobs_restore_application_state if application.present?
  end
end
start() click to toggle source

method used to start

# File lib/capistrano_multiconfig_parallel/cli.rb, line 9
def start
  before_start
  configuration_valid?
  run_the_application
end