Sha256: 0463e39fa2f0a787d59c0bfc983612c9af40a2a314dbeb3a2611dbac9c7d56a9

Contents?: true

Size: 658 Bytes

Versions: 3

Compression:

Stored size: 658 Bytes

Contents

require 'beaker-answers/versions/version20171'

module BeakerAnswers
  # This class provides answer file information for PE version 2017.2
  #
  # @api private
  class Version20172 < Version20171
    # The version of PE that this set of answers is appropriate for
    def self.pe_version_matcher
      /\A2017\.2/
    end

    # This is used to generate the profile host parameters, but now passes the
    # options[:meep_schema_version] to determine which form of pe.conf is to be
    # generated.
    def hiera_host_config
      pe_conf = BeakerAnswers::PeConf.new(@hosts, @options[:meep_schema_version])
      pe_conf.configuration_hash
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beaker-answers-0.16.0 lib/beaker-answers/versions/version20172.rb
beaker-answers-0.15.0 lib/beaker-answers/versions/version20172.rb
beaker-answers-0.14.0 lib/beaker-answers/versions/version20172.rb