Class: PEBuild::ConfigBuilder::Global
- Inherits:
-
ConfigBuilder::Model::Base
- Object
- ConfigBuilder::Model::Base
- PEBuild::ConfigBuilder::Global
- Defined in:
- lib/pe_build/config_builder/global.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#download_root ⇒ String
The URI to the directory containing Puppet Enterprise installers if the installer is not yet cached.
-
#filename ⇒ String
The filename of the Puppet Enterprise installer.
-
#suffix ⇒ String
The distribution specifix suffix of the Puppet Enterprise installer to use.
-
#version ⇒ String
The version of Puppet Enterprise to install.
Instance Method Summary collapse
Instance Attribute Details
#download_root ⇒ String
Returns 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 |
#filename ⇒ String
Returns The filename of the Puppet Enterprise installer.
16 |
# File 'lib/pe_build/config_builder/global.rb', line 16 def_model_attribute :filename |
#suffix ⇒ String
Returns 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 |
#version ⇒ String
Returns 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_proc ⇒ Object
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 |