Class: ConfigBuilder::Model::Provider::Vsphere

Inherits:
Base
  • Object
show all
Defined in:
lib/config_builder/model/provider/vsphere.rb

Overview

Instance Method Summary collapse

Methods inherited from Base

#eval_overrides, #to_proc

Methods inherited from Base

#attr, #attrs=, #call, #configure!, def_model_attribute, def_model_delegator, def_model_id, def_model_option, #eval_models, #instance_options, model_attributes, model_delegators, #model_delegators, model_options, new_from_hash, #to_proc, #with_attr

Constructor Details

#initializeVsphere

Returns a new instance of Vsphere.



30
31
32
33
34
# File 'lib/config_builder/model/provider/vsphere.rb', line 30

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

Instance Method Details

#config_custom_attributes(config, val) ⇒ Object



41
42
43
44
45
# File 'lib/config_builder/model/provider/vsphere.rb', line 41

def config_custom_attributes(config, val)
  val.each do |e|
    config.custom_attribute(*e)
  end
end

#instance_idObject



36
37
38
# File 'lib/config_builder/model/provider/vsphere.rb', line 36

def instance_id
  'vsphere'
end