Sha256: 27ba9f3ff65e0134c38bb1e66d9b5798c47a6b01f390f31fbb452e64802ed74b

Contents?: true

Size: 899 Bytes

Versions: 3

Compression:

Stored size: 899 Bytes

Contents

require 'config_builder/model'

class PEBuild::ConfigBuilder::PEBootstrap < ::PEBuild::ConfigBuilder::Global

  def_model_attribute :master
  def_model_attribute :answer_file

  def_model_attribute :verbose

  def_model_attribute :role
  #def_model_attribute :step
  def_model_attribute :relocate_manifests

  def to_proc
    Proc.new do |vm_config|
      vm_config.provision :pe_bootstrap do |pe|
        pe.download_root = attr(:download_root) if attr(:download_root)
        pe.version       = attr(:version)       if attr(:version)
        pe.suffix        = attr(:suffix)        if attr(:suffix)
        pe.filename      = attr(:filename)      if attr(:filename)

        pe.role = attr(:role) if attr(:role)
        pe.relocate_manifests = attr(:relocate_manifests) if attr(:relocate_manifests)
      end
    end
  end

  ::ConfigBuilder::Model::Provisioner.register('pe_bootstrap', self)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-pe_build-0.4.2 lib/pe_build/config_builder/pe_bootstrap.rb
vagrant-pe_build-0.4.1 lib/pe_build/config_builder/pe_bootstrap.rb
vagrant-pe_build-0.4.0 lib/pe_build/config_builder/pe_bootstrap.rb