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.
-
#series ⇒ String
The release series of PE.
-
#suffix ⇒ String
The distribution specifix suffix of the Puppet Enterprise installer to use.
-
#version ⇒ String
The version of Puppet Enterprise to install.
-
#version_file ⇒ String
The path to a file relative to #download_root.
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.
35 |
# File 'lib/pe_build/config_builder/global.rb', line 35 def_model_attribute :download_root |
#filename ⇒ String
Returns The filename of the Puppet Enterprise installer.
30 |
# File 'lib/pe_build/config_builder/global.rb', line 30 def_model_attribute :filename |
#series ⇒ String
Returns The release series of PE. Completely optional and currently has no effect other than being an interpolation token available for use in #download_root.
21 |
# File 'lib/pe_build/config_builder/global.rb', line 21 def_model_attribute :series |
#suffix ⇒ String
Returns The distribution specifix suffix of the Puppet Enterprise installer to use.
26 |
# File 'lib/pe_build/config_builder/global.rb', line 26 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 |
#version_file ⇒ String
Returns The path to a file relative to #download_root. The contents of this file will be read and used to specify #version.
13 |
# File 'lib/pe_build/config_builder/global.rb', line 13 def_model_attribute :version_file |
Instance Method Details
#to_proc ⇒ Object
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/pe_build/config_builder/global.rb', line 37 def to_proc Proc.new do |global_config| with_attr(:download_root) { |val| global_config.pe_build.download_root = val } with_attr(:version) { |val| global_config.pe_build.version = val } with_attr(:version_file) { |val| global_config.pe_build.version_file = val } with_attr(:series) { |val| global_config.pe_build.series = val } with_attr(:suffix) { |val| global_config.pe_build.suffix = val } with_attr(:filename) { |val| global_config.pe_build.filename = val } end end |