Class: CertBot::Parameter::ParameterHandler

Inherits:
RubyUtils::Parameter::BaseParameterHandler
  • Object
show all
Defined in:
lib/cert_bot/parameter/parameter_handler.rb

Overview

class to seperate the storage of the parameter in a repository entity and checking for valid parameter combination as part of the application logic.

Instance Method Summary collapse

Instance Method Details

#check_parameter_constraintsObject (private)

private method to the specified parameter constraints



24
25
26
27
# File 'lib/cert_bot/parameter/parameter_handler.rb', line 24

def check_parameter_constraints
  # check mandatory file parameter
  check_mandatory_parameter(:file)
end

#initialize_repository(argv) ⇒ Object

method to initialize the correct repository that should be used in this handler

Parameters:

  • argv (Array)

    array of input parameters



12
13
14
# File 'lib/cert_bot/parameter/parameter_handler.rb', line 12

def initialize_repository(argv)
  @repository = CertBot::Parameter::ParameterRepository.new(argv)
end

#validate_parametersObject (private)

private method with calls of the different validations methods



19
20
21
# File 'lib/cert_bot/parameter/parameter_handler.rb', line 19

def validate_parameters
  ##
end