Sha256: 6498c73a3f5d1b5aed3436881e27124fb75e3e144de8a5b7924571ea77458536

Contents?: true

Size: 935 Bytes

Versions: 5

Compression:

Stored size: 935 Bytes

Contents

# @see http://docs.vagrantup.com/v2/vmware/configuration.html
class ConfigBuilder::Model::Provider::VMwareFusion < ConfigBuilder::Model::Base

  # @!attribute [rw] vmx
  #   @return [Hash<String, String>] A hash of VMX options for the given VM
  #   @example
  #     model.vmx = {
  #       'memsize'  => '1024',
  #       'numvcpus' => '2',
  #     }
  def_model_attribute :vmx

  # @!attribute [rw] gui
  #   @return [Boolean] Whether the GUI should be launched when the VM is created
  def_model_attribute :gui

  def initialize
    @defaults = {
      :gui => false,
      :vmx => {},
    }
  end

  def to_proc
    Proc.new do |vm_config|
      vm_config.provider 'vmware_fusion' do |fusion_config|
        fusion_config.gui = attr(:gui)
        attr(:vmx).each_pair do |key, value|
          fusion_config.vmx[key] = value
        end
      end
    end
  end

  ConfigBuilder::Model::Provider.register('vmware_fusion', self)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-config_builder-0.11.0 lib/config_builder/model/provider/vmware_fusion.rb
vagrant-config_builder-0.10.1 lib/config_builder/model/provider/vmware_fusion.rb
vagrant-config_builder-0.10.0 lib/config_builder/model/provider/vmware_fusion.rb
vagrant-config_builder-0.9.0 lib/config_builder/model/provider/vmware_fusion.rb
vagrant-config_builder-0.8.0 lib/config_builder/model/provider/vmware_fusion.rb