Class: CertBot::Parameter::ParameterHandler
- Inherits:
-
RubyUtils::Parameter::BaseParameterHandler
- Object
- RubyUtils::Parameter::BaseParameterHandler
- CertBot::Parameter::ParameterHandler
- 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
-
#check_parameter_constraints ⇒ Object
private
private method to the specified parameter constraints.
-
#initialize_repository(argv) ⇒ Object
method to initialize the correct repository that should be used in this handler.
-
#validate_parameters ⇒ Object
private
private method with calls of the different validations methods.
Instance Method Details
#check_parameter_constraints ⇒ Object (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
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_parameters ⇒ Object (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 |