Class: VSphereCloud::ClusterConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud/vsphere/cluster_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, config_hash) ⇒ ClusterConfig

Returns a new instance of ClusterConfig.



6
7
8
9
# File 'lib/cloud/vsphere/cluster_config.rb', line 6

def initialize(name, config_hash)
  @name = name
  @config = config_hash
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/cloud/vsphere/cluster_config.rb', line 4

def name
  @name
end

Instance Method Details

#resource_poolObject



11
12
13
# File 'lib/cloud/vsphere/cluster_config.rb', line 11

def resource_pool
  @config['resource_pool']
end