Sha256: 4e71fe1eca128f6639257fdad80f91695d2094389f5f62fa6356a2ca43aab8e4

Contents?: true

Size: 963 Bytes

Versions: 43

Compression:

Stored size: 963 Bytes

Contents

require 'beaker-answers/versions/version34'
module BeakerAnswers
  # This class provides answer file information for PE version 4.0
  #
  # @api private
  class Version38 < Version34

    # The version of PE that this set of answers is appropriate for
    def self.pe_version_matcher
      /\A3\.8/
    end

    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
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
beaker-answers-1.0.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.29.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.28.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.27.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.26.3 lib/beaker-answers/versions/version38.rb
beaker-answers-0.26.2 lib/beaker-answers/versions/version38.rb
beaker-answers-0.26.1 lib/beaker-answers/versions/version38.rb
beaker-answers-0.26.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.25.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.24.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.23.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.22.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.21.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.20.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.19.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.18.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.17.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.16.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.15.0 lib/beaker-answers/versions/version38.rb
beaker-answers-0.14.0 lib/beaker-answers/versions/version38.rb