Class: PEBuild::ConfigBuilder::Global

Inherits:
ConfigBuilder::Model::Base
  • Object
show all
Defined in:
lib/pe_build/config_builder/global.rb

Direct Known Subclasses

PEBootstrap

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#download_rootString

Returns The URI to the directory containing Puppet Enterprise installers if the installer is not yet cached. This setting is optional.

Returns:

  • (String)

    The URI to the directory containing Puppet Enterprise installers if the installer is not yet cached. This setting is optional.



21
# File 'lib/pe_build/config_builder/global.rb', line 21

def_model_attribute :download_root

#filenameString

Returns The filename of the Puppet Enterprise installer.

Returns:

  • (String)

    The filename of the Puppet Enterprise installer.



16
# File 'lib/pe_build/config_builder/global.rb', line 16

def_model_attribute :filename

#suffixString

Returns The distribution specifix suffix of the Puppet Enterprise installer to use.

Returns:

  • (String)

    The distribution specifix suffix of the Puppet Enterprise installer to use.



12
# File 'lib/pe_build/config_builder/global.rb', line 12

def_model_attribute :suffix

#versionString

Returns The version of Puppet Enterprise to install.

Returns:

  • (String)

    The version of Puppet Enterprise to install.



7
# File 'lib/pe_build/config_builder/global.rb', line 7

def_model_attribute :version

Instance Method Details

#to_procObject



23
24
25
26
27
28
29
30
# File 'lib/pe_build/config_builder/global.rb', line 23

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