Parent

Methods

Class/Module Index [+]

Quicksearch

PhusionPassenger::Config::ValidateInstallCommand

Constants

FAIL_EXIT_CODE

Signifies that there is at least 1 error.

INTERNAL_ERROR_CODE

Internal error occurred.

WARN_EXIT_CODE

Signifies that there are no error, but at least 1 warning.

Public Instance Methods

run() click to toggle source
# File lib/phusion_passenger/config/validate_install_command.rb, line 39
def run
  @orig_argv = @argv.dup
  parse_options
  prepare
  begin
    if !@options[:auto] && !@options[:invoked_from_installer]
      ask_what_to_validate
    end
    if @options[:validate_apache2]
      initialize_apache_envvars
      if !@options[:auto] && !@options[:invoked_from_installer]
        check_whether_there_are_multiple_apache_installs
      end
    end

    if @options[:validate_passenger]
      check_tools_in_path
      check_no_other_installs_in_path
    end
    if @options[:validate_apache2]
      if check_apache2_installed
        check_apache2_load_module_config
      end
    end

    if @options[:summary]
      summarize
    end
    exit(FAIL_EXIT_CODE) if @error_count > 0
    exit(WARN_EXIT_CODE) if @warning_count > 0
  ensure
    reset_terminal
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.