Sha256: 13aaaca7deaa4e6cc0a314c84ab336f35f8a3c26a8a669e4c09d6e66f5e4c851
Contents?: true
Size: 1.4 KB
Versions: 14
Compression:
Stored size: 1.4 KB
Contents
require 'config_builder/model' class PEBuild::ConfigBuilder::Global < ::ConfigBuilder::Model::Base # @!attribute [rw] version # @return [String] The version of Puppet Enterprise to install. def_model_attribute :version # @!attribute [rw] suffix # @return [String] The distribution specifix suffix of the Puppet # Enterprise installer to use. def_model_attribute :suffix # @!attribute [rw] filename # @return [String] The filename of the Puppet Enterprise installer. def_model_attribute :filename # @!attribute [rw] download_root # @return [String] The URI to the directory containing Puppet Enterprise # installers if the installer is not yet cached. This setting is optional. def_model_attribute :download_root def to_proc Proc.new do |global_config| global_config.pe_build.download_root = attr(:download_root) if attr(:download_root) global_config.pe_build.version = attr(:version) if attr(:version) global_config.pe_build.suffix = attr(:suffix) if attr(:suffix) global_config.pe_build.filename = attr(:filename) if attr(:filename) end end end class ConfigBuilder::Model::Root def_model_delegator :pe_build def eval_pe_build(root_config) if attr(:pe_build) p = PEBuild::ConfigBuilder::Global.new_from_hash(attr(:pe_build)) p.call(root_config) end end private :eval_pe_build end
Version data entries
14 entries across 14 versions & 1 rubygems