Class: CemAcpt::ImageBuilder::ProvisionCommands::WindowsFamily
- Inherits:
-
Object
- Object
- CemAcpt::ImageBuilder::ProvisionCommands::WindowsFamily
- Defined in:
- lib/cem_acpt/image_builder/provision_commands.rb
Instance Method Summary collapse
- #default_provision_commands ⇒ Object
-
#initialize(config, image_name, base_image, os_major_version, puppet_version) ⇒ WindowsFamily
constructor
A new instance of WindowsFamily.
- #provision_commands ⇒ Object (also: #to_a)
Constructor Details
#initialize(config, image_name, base_image, os_major_version, puppet_version) ⇒ WindowsFamily
Returns a new instance of WindowsFamily.
58 59 60 61 62 63 64 |
# File 'lib/cem_acpt/image_builder/provision_commands.rb', line 58 def initialize(config, image_name, base_image, os_major_version, puppet_version) @config = config @image_name = image_name @base_image = base_image @os_major_version = os_major_version @puppet_version = puppet_version end |
Instance Method Details
#default_provision_commands ⇒ Object
66 67 68 |
# File 'lib/cem_acpt/image_builder/provision_commands.rb', line 66 def default_provision_commands [] end |
#provision_commands ⇒ Object Also known as: to_a
70 71 72 73 |
# File 'lib/cem_acpt/image_builder/provision_commands.rb', line 70 def provision_commands commands_from_config = @config.get("images.#{@image_name}.provision_commands") || [] (default_provision_commands + commands_from_config).compact end |