Class: Fog::Compute::VcloudDirector::VmCustomization

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/vcloud_director/models/compute/vm_customization.rb

Instance Method Summary collapse

Methods inherited from Model

#initialize, #inspect, #lazy_load_attrs, #make_attr_loaded_method, #make_lazy_load_method

Constructor Details

This class inherits a constructor from Fog::Compute::VcloudDirector::Model

Instance Method Details

#saveObject



33
34
35
36
# File 'lib/fog/vcloud_director/models/compute/vm_customization.rb', line 33

def save
  response = service.put_guest_customization_section_vapp(id, attributes)
  service.process_task(response.body)
end

#scriptObject

bug: for some reason if the customization_script has /r, is showed here as /n. Looks likes is something in excon



25
26
27
# File 'lib/fog/vcloud_director/models/compute/vm_customization.rb', line 25

def script
  attributes[:customization_script]
end

#script=(new_script) ⇒ Object



29
30
31
# File 'lib/fog/vcloud_director/models/compute/vm_customization.rb', line 29

def script=(new_script)
  attributes[:customization_script] = new_script
end