Class: BeakerAnswers::Version38 Private
- Defined in:
- lib/beaker-answers/versions/version38.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
This class provides answer file information for PE version 4.0
Direct Known Subclasses
Constant Summary
Constants inherited from Answers
Answers::DEFAULT_ANSWERS, Answers::DEFAULT_FORMAT, Answers::DEFAULT_HIERA_ANSWERS
Class Method Summary collapse
-
.pe_version_matcher ⇒ Object
private
The version of PE that this set of answers is appropriate for.
Instance Method Summary collapse
- #generate_answers ⇒ Object private
Methods inherited from Version30
Methods inherited from Answers
#answer_for, #answer_hiera, #answer_string, #answers, create, #get_defaults_or_answers, #initialize, #installer_configuration_string, #only_host_with_role, supported_upgrade_versions, supported_versions
Constructor Details
This class inherits a constructor from BeakerAnswers::Answers
Class Method Details
.pe_version_matcher ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The version of PE that this set of answers is appropriate for
9 10 11 |
# File 'lib/beaker-answers/versions/version38.rb', line 9 def self.pe_version_matcher /\A3\.8/ end |
Instance Method Details
#generate_answers ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/beaker-answers/versions/version38.rb', line 13 def generate_answers masterless = @options[:masterless] return super if masterless the_answers = super # add new answers exit_for_nc_migrate = answer_for(@options, :q_exit_for_nc_migrate, 'n') enable_future_parser = answer_for(@options, :q_enable_future_parser, 'n') the_answers.map do |key, value| # there may not be answers in the case of a windows host if the_answers[key] the_answers[key][:q_exit_for_nc_migrate] = exit_for_nc_migrate the_answers[key][:q_enable_future_parser] = enable_future_parser end end return the_answers end |