Class: VSphereCloud::VmCreatorBuilder

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

Instance Method Summary collapse

Instance Method Details

#build(resources, cloud_properties, client, cloud_searcher, logger, cpi, agent_env, file_provider, disk_provider) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/cloud/vsphere/vm_creator_builder.rb', line 5

def build(resources, cloud_properties, client, cloud_searcher, logger, cpi, agent_env, file_provider, disk_provider)
  VmCreator.new(
    cloud_properties.fetch('ram'),
    cloud_properties.fetch('disk'),
    cloud_properties.fetch('cpu'),
    resources,
    client,
    cloud_searcher,
    logger,
    cpi,
    agent_env,
    file_provider,
    disk_provider
  )
end