Class: Beaker::Version38 Private

Inherits:
Version34 show all
Defined in:
lib/beaker/answers/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

Version40

Instance Method Summary collapse

Methods inherited from Version30

#host_answers

Methods inherited from Answers

#answer_for, #answer_string, #answers, create, #initialize

Constructor Details

This class inherits a constructor from Beaker::Answers

Instance Method Details

#generate_answersObject

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.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/beaker/answers/version38.rb', line 8

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